wood burning stoves*
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 OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA 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




 
Don't get me started about those stupid light bulbs.
 
subject: JTree and Filesystem?