Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JTree and Filesystem?

 
Max Power
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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




 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic