• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

directory tree structures

 
Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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).]
 
Ranch Hand
Posts: 15304
6
Mac OS X IntelliJ IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
"How many licks ..." - I think all of this dog's research starts with these words. Tasty tiny ad:
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
reply
    Bookmark Topic Watch Topic
  • New Topic