Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JFileChooser Question

 
D R Wilkinson
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When I create a JFileChooser to save files with, the "Create New Folder" button is always disabled.

How do I enable this button?

Also, why is this button enabled on the open file version? I don't understand why a user would want to create a new folder in order to open an existing file as that file must be stored within a folder... or am I missing something.

Thanks.

Darren
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check out the setFileSelectionMode method; it does what you're looking for.
 
Without deviation from the norm, progress is not possible - Zappa. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!