| Author |
JTable and Abstract data types
|
Talal Mohammed
Greenhorn
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
Thanks!
|
 |
John Jai
Bartender
Joined: May 31, 2011
Posts: 1778
|
|
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
Greenhorn
Joined: Nov 26, 2011
Posts: 13
|
|
|
sorry i meant a doubly linked list, i ll edit it.
|
 |
Paul Clapham
Bartender
Joined: Oct 14, 2005
Posts: 16487
|
|
|
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.
|
 |
 |
|
|
subject: JTable and Abstract data types
|
|
|