This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Show expanded JTree

 
Ezra Exposito
Ranch Hand
Posts: 34
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
By default a JTree is displayed with only the root node
expanded. I would like to display the tree completely
expanded from the start since the most important information
in my app are at the leaf nodes. Any ideas or links to good
resources would be greatly appreciated.
Thanks
 
Manfred Leonhardt
Ranch Hand
Posts: 1492
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ezra,
As a quick and dirty approach I would do the following:

Regards,
Manfred.
 
Ezra Exposito
Ranch Hand
Posts: 34
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a bunch, my tree is now fully expanded when it starts.
One last question:
Within a folder the default is to display the subfolders first and then any leaves. Is it possible to reverse the order so that
the leaves are first and then the folders ?
Thanks.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic