• Post Reply Bookmark Topic Watch Topic
  • New Topic

Selecting a directory using a JFileChooser  RSS feed

 
Daniel Searson
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In my application, the user selects a directory to use from a JFileChooser. This works well enough by setting the JFileChooser to DIRECTORIES_ONLY and showing the dialog as usual.
However, not many people I've tested the program on seem to be able to figure out how to use it. I'd much rather be able to select the currently viewed directory when the user clicks Open, as opposed to the currently selected directory.
Does anyone know how I would do this?
-Daniel
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!