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 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" Watch "JTree" New topic
Author

JTree

Alan Brooks
Greenhorn

Joined: Nov 30, 2008
Posts: 14
Hey

I have been makeing a JTree to show a tree of files and was just wondering if anyone knows why when a folder is empty, the tree icon for that folder chnages and is there any way to keep it the same as a folder with items in it.

Alan
Gregg Bolinger
Ranch Hand

Joined: Jul 11, 2001
Posts: 15230

http://www.coderanch.com/t/343329/GUI/java/Empty-directories-shown-as-leaf
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: JTree
 
Similar Threads
JTree
Subtree in JTree
JTree
JTree
Refreshing JTree