Better JFileChooser alternatives for OS X, Linux?
Asked Answered
Q

2

7

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

Quaggy answered 21/3, 2011 at 11:44 Comment(1)
https://mcmap.net/q/1164413/-jfilechooser-on-os-x/86515Tabethatabib
Q
1

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

Quaggy answered 23/3, 2011 at 8:44 Comment(0)
R
3

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

Ramentum answered 21/3, 2011 at 11:51 Comment(2)
Oh, it does what I want so very nearly, but it doesn't seem to support multiple selection!Quaggy
Sorry, you are out of luck for multiple selection, not that it helps you now java 1.7 adds setMultipleMode to FileDialog :-( Of course that code is open sourced in open jdk, maybe you could repackage it and bundle it with your app as long as your license is compatible (and assuming it has been updated for MAC OS, probably not).Ramentum
Q
1

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

Quaggy answered 23/3, 2011 at 8:44 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.