• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

directory tree structures

 
kevin schmidt
Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I wasn't sure where to post this question, but it is a Java question. How does a person build a directory tree listing. I mean, if you have the program in a directory, it reads everything in that directory and also within every sub-directory contained within, and displayed on the screen. Does anyone know where I could find code to do this, and NO, this is NOT a homework assignment. I know how to display a directory, it's just calling the sub-directorys from within. TIA.
Kevin
I forgot to add one thing. I want it to be a java program, not an applet or servlet. TIA again!!
[This message has been edited by kevin schmidt (edited November 07, 2001).]
 
Gregg Bolinger
GenRocket Founder
Ranch Hand
Posts: 15302
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
javax.swing.JTree - Look at that API. Also, look at the SWING tutorial on java.sun.com - It will show code examples.
That should give you a good place to start.

------------------
Happy Coding,
Gregg Bolinger
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic