File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "JTable and Abstract data types" Watch "JTable and Abstract data types" New topic
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: 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
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: 18987
    
    8

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: http://aspose.com/file-tools
 
subject: JTable and Abstract data types