Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How To Crate a Directory Tree In Java Swing  RSS feed

 
Parth Bhatt
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi !!
I've been writing a cross platform File Browser. Most of it has been done but im screwed up with creating the Directory Tree...
CAN SOMEONE HELP ME WITH CREATING A DIRECTORY TREE...!! I mean, what i need to do is browse the filesystem recursively adding each unvisited directory to a JTree...
It'll be fine even if i could just get the code that browses the whole directory structure recursively....

plz reply ASAP....!!
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Most of it has been done but im screwed up with creating the Directory Tree...

Can you post what you've done so far?
 
Parth Bhatt
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ya Sure i can in fact i'm gonna do that very soon... just that its still done in a very monolithic kind of way... things are pretty buggy...will have tyo recode the whole thing once i'm thru with the directory tree....
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24217
38
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Since this is a Swing question, I'm going to move it to the Swing forum. Note, though, that the Sun Tutorial chapter on JTree is likely to be very useful to you.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!