This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes directory tree structures Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "directory tree structures" Watch "directory tree structures" New topic

directory tree structures

kevin schmidt
Ranch Hand

Joined: Aug 24, 2001
Posts: 85
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.
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

Joined: Jul 11, 2001
Posts: 15302

javax.swing.JTree - Look at that API. Also, look at the SWING tutorial on - It will show code examples.
That should give you a good place to start.

Happy Coding,
Gregg Bolinger

GenRocket - Experts at Building Test Data
I agree. Here's the link:
subject: directory tree structures
It's not a secret anymore!