1. Filesystem in JTree coderanch.com |
2. JTree and Filesystem? coderanch.comhello, 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 import javax.swing.*; import javax.swing.tree.TreeModel; import ... |