Win a copy of Microservices in Action this week in the Web Services forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Ganesh Patekar
  • Frits Walraven
  • Tim Moores
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Stephan van Hulst
  • salvin francis
  • Tim Holloway

JTable  RSS feed

 
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am new to Java Programming. I am creating a JTable for the FileSystem and needs only the folders (directories) to show but no files. How can i implement that while loading the nodes. Many thanks in advance...
 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
whether u are talking about jtable or jtree.first confirm that?

Originally posted by basic java:
I am new to Java Programming. I am creating a JTable for the FileSystem and needs only the folders (directories) to show but no files. How can i implement that while loading the nodes. Many thanks in advance...


 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am using JTree. Sorry for the confusion.
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check out this tutorial. You may be trying to implement a Tree Table, not just a Tree or just a Table.
[This message has been edited by Bodie Minster (edited May 08, 2001).]
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks alot this is close to what i was looking for.
I have another question. Is there a method like JFileChooser to BringUp FileBrowseDlg in Windows. This window will allows the user to Browse thu the folders to a specific folder where files might be located.
One way i could think of is calling comdlg32.dll by some code in Java to bringup that window.
Any suggestions ....
Shaibi
 
"The Hood"
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
basic java and devara
Please change your name to be compliant with JavaRanch's naming policy.
Your ID should be 2 separate names with more than 1 letter each. We really want this to be a professional forum and would prefer that you use your REAL name.
basic java you need a real sounding name.
devara you need to have a first and a last name with more than 1 char each.
Thanks,
Cindy
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!