File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JTree" Watch "JTree" New topic


Alan Brooks

Joined: Nov 30, 2008
Posts: 14

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.

Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15302

GenRocket - Experts at Building Test Data
I agree. Here's the link:
subject: JTree
It's not a secret anymore!