my dog learned polymorphism
The moose likes Swing / AWT / SWT and the fly likes JTree and Filesystem? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JTree and Filesystem?" Watch "JTree and Filesystem?" New topic

JTree and Filesystem?

Max Power
Ranch Hand

Joined: May 10, 2004
Posts: 47
hello, i have this little example of a jtree displaying a directory from the harddrive. the problem is, that it always shows full paths.


instead of


how can i fix that? you can compile the code and just give a valid path for the parameter....

any ideas? THANKS

I agree. Here's the link:
subject: JTree and Filesystem?
It's not a secret anymore!