Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JTable  RSS feed

 
Anonymous
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...
 
devara
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
 
Cindy Glass
"The Hood"
Sheriff
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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!