This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line!
See this thread for details.
Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JTable and Abstract data types

 
Talal Mohammed
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 1776
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sorry i meant a doubly linked list, i ll edit it.
 
Paul Clapham
Sheriff
Posts: 21416
33
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic