aspose file tools*
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 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JTree and Filesystem?" Watch "JTree and Filesystem?" New topic
Author

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.

c:\programs
|
|
|------c:\programs\subdir

instead of

c:\programs
|
|
|------subdir

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: http://aspose.com/file-tools
 
subject: JTree and Filesystem?
 
Similar Threads
TreeNode ClassCastException?
Dont collapse JTree after refresh?
Lazy fetching JTree
Expand Lazy Loaded JTree
JTree / DataModel Confusion