Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Better JFileChooser alternatives for OS X, Linux?

JFileChooser, at least under OS X, produces a very half-baked open dialog that doesn't support things like typing in the start of a file name to select it or disclosure triangles.

Does anyone know of a 3rd-party alternative that has a more fully-featured behaviour? Ideally, I'd like one for each major platform. I'm aware of XFileDialog for windows, but what about Mac and Linux/Unix?

In comparison:

Java's file chooser

OS X's file chooser

like image 725
Zarkonnen Avatar asked Mar 21 '11 11:03

Zarkonnen


2 Answers

Does java.awt.FileDialog do what you want, you may need to specify

System.setProperty("apple.awt.fileDialogForDirectories", "true");

if you want to get a directory though

like image 153
vickirk Avatar answered Nov 09 '22 12:11

vickirk


I found the Quaqua Look & Feel, which upgrades JFileChooser a bit - it's still not perfect, but it's arguably better.

like image 32
Zarkonnen Avatar answered Nov 09 '22 13:11

Zarkonnen