0

I pretty much want to do this:

Save using JFileChooser with pre-populated file name?

Goal is to have, upon initializing the dialog, predefined name in the File name (Direcory name, acctually) textbox.

However, I want only directories to be displayed: .setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY)

With that, the code provided in the question doesn't work.

Is there a workaround?

Community
  • 1
  • 1
Karlovsky120
  • 6,212
  • 8
  • 41
  • 94
  • Possible duplicate of [jfilechooser-set-directory-to-a-path-in-a-file](http://stackoverflow.com/questions/5721504/jfilechooser-set-directory-to-a-path-in-a-file) – basiljames Sep 12 '12 at 02:19
  • Nope, it's not, we're trying different things here... – Karlovsky120 Sep 12 '12 at 10:22
  • From http://stackoverflow.com/questions/5721504/jfilechooser-set-directory-to-a-path-in-a-file pass the directory name in the JFileChooser constructor. – Gilbert Le Blanc Sep 12 '12 at 13:54

0 Answers0