This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
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 Java Interview Guide this week in the Jobs Discussion 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!