• Post Reply Bookmark Topic Watch Topic
  • New Topic

Displaying my File system-JTree?

 
Pat Peg
Ranch Hand
Posts: 195
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need to add a bit of code to a project. I want to allow the user to view his/her file system and choose a file to open (which the contents of would then be read by the program.) I have no experience with JTree but I was thinking that this might be the way to go-is it? Is there a better approach?

Thanks
 
Pat Peg
Ranch Hand
Posts: 195
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Never mind-I discovered JFileChooser...I shall plant my flag on it and claim it in the name of the king of spain...I need a nap now.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!