JFileChooser looks nothing like the native widget. I seem to remember reading some hack to get it look like the native widget but searching for it know i can't seem to find it again i came across posts that suggest using java.awt.FileChooser but that class does not seem to be in the distribution. How can i make JFileChooser make look like the native widget?
Asked
Active
Viewed 4,797 times
3 Answers
5
java.awt.FileDialog
will be the classes the posts meant. It is, unsurprisingly, more limited that the Swing version. All Java SE implementations are required to have the FileDialog
class (although headless configurations may not be able to do anything useful with it).

Tom Hawtin - tackline
- 145,806
- 30
- 211
- 305
-
1"more limited" sure -- except in how the native file choosers are all infinitely superior to JFileChooser.... – lscoughlin Apr 01 '11 at 08:54
-
Superior in looks, perhaps, but missing basic features like being able to choose which format to save in make it kind of pointless overall. :( – Hakanai Jan 02 '15 at 01:54
4
It may be worth a look at the Quaqua look and feel, it replaces the file chooser with a much better and more native version, including folder colouring etc.

Gareth Davis
- 27,701
- 12
- 73
- 106