It's not a secret anymore!*
The moose likes Swing / AWT / SWT and the fly likes JTree Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
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
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

http://www.coderanch.com/t/343329/GUI/java/Empty-directories-shown-as-leaf


GenRocket - Experts at Building Test Data
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: JTree