Less than 42 hours left in the trailboss' kickstarter!

New rewards and stretch goals. CLICK HERE!



Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Using JTree/JTable together - How To  RSS feed

 
Randy Johnson
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Some time ago, I saw an example of an applet that used a JTree, but the display actually looked more like a JTable. Each node in the tree had columnar data. You could expand/collapse nodes, just like a tree, but when you expanded, for example, each new node had its column data displayed as well.
Has anyone seen something like this? If so, could you point me to a technical paper, book, code sample, etc., that shows how this is done?
Thanks!
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The KIWI Toolkit has a TreeTable.
Check it out.
 
Bhagya Tangutur
Ranch Hand
Posts: 88
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check this...
http://java.sun.com/products/jfc/tsc/articles/
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!