This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes JTree Leaf Node Folder Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Reply Bookmark "JTree Leaf Node Folder" Watch "JTree Leaf Node Folder" New topic
Author

JTree Leaf Node Folder

Gregg Bolinger
Ranch Hand

Joined: Jul 11, 2001
Posts: 15230

I have a JTree that I populate from a database. I have a Root Node, Then Catagory Nodes, and under those, I have SubCatagory Nodes.
If the Sub Catagory Node has no children, which some may until the Database get's more entries, they show up as a Leaf Node, with the Leaf Node Icon.
Is there a way to force them to be Parent Nodes with No Children instead of a leaf node, and then get them the proper folder icon?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JTree Leaf Node Folder
 
Similar Threads
JTree and indent
Subtree in JTree
JCheckBox in Jtree Problem
Setting Leaf in the JTree (Urgent)
Dynamic JTree Components