File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes JTable and Abstract data types Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "JTable and Abstract data types" Watch "JTable and Abstract data types" New topic

JTable and Abstract data types

Talal Mohammed

Joined: Nov 26, 2011
Posts: 13
Can I integrate a JTable with any of the following 'abstract data types'?
- doubly linked list
- stack implementation
- queue implementation
If I'm being unclear please specify and I will try to elaborate more
John Jai

Joined: May 31, 2011
Posts: 1776
By meaning integrating, do you intend to show the values of the so said collection values in a JTable?

Do you have your own TableModel? If you have a custom TableModel that extends an AbstractTableModel you can show the Collection values in the JTable.

The pointed out LinkedList is not abstract. By mentioning Stack and queue implementation you mean its not abstract?
Talal Mohammed

Joined: Nov 26, 2011
Posts: 13
sorry i meant a doubly linked list, i ll edit it.
Paul Clapham

Joined: Oct 14, 2005
Posts: 19973

I don't see why not. I assume that each of the entries in the list, queue, whatever is an object which you can display in a row somehow.
I agree. Here's the link:
subject: JTable and Abstract data types
It's not a secret anymore!