Help coderanch get a
new server
by contributing to the fundraiser
  • 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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
 
them good ole boys were drinking whiskey and rye singin' this'll be the day that I die. Drink tiny ad.
We need your help - Coderanch server fundraiser
https://coderanch.com/t/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic