JFileChooser

Client properties:
Property Type Notes
Quaqua
.FileChooser
.preview
java.awt.Component Values: null or a Component.

System properties:
Property Type Notes
Quaqua
.FileChooser
.quickLookEnabled
boolean Set this to "false" if you experience crashes with QuickLook file previews in the file chooser.

 

Client property: Quaqua.FileChooser.preview

Sets the component used for rendering the file preview in the last column of the column view in the file browser.

General Description

The FileChooserUI of the Quaqua Look and Feel roughly matches the design of native file dialogs on Mac OS X 10.3 through 10.5 (Jaguar, Panther and Leopard).

JFileChooser with Java 1.5 and Quaqua set to the Leopard design

Quaqua - FileChooserUI with Leopard design

JFileChooser with Java 1.4 and Quaqua set to the Panther design

Quaqua - FileChooserUI with Panther design

JFileChooser with Java 1.4 and Quaqua set to the Jaguar design:

Quaqua - JFileChooser with Jaguar design

The design is determined at startup. You can force a specific style, by setting the system property Quaqua.design to jaguar or to panther. If you want Quaqua to determine the design automatically, dont' set this property, or specify the value auto.
 

System.setProperty(

   "Quaqua.design", "panther"

);

 

Changing the design like this, will also alter the design of other user interface elements. It is not recommended to use another style than the one used by the operating system. Or else you will see undesired artefacts, because Quaqua does not fully replace all user interface elements of the underlying Aqua Look and Feel by Apple.

 

You can use class JSheet to display a file chooser as a document modal sheet.

 

Keyboard shortcuts

The Panther filechooser supports the following keyboard shortcuts:

Keystroke Description
Shift-Command-A

Navigates to the applications folder.

Shift-Command-C

Navigates to the computer folder.

Command-D
or
Shift-Command-D

Navigates to the desktop folder.

Shift-Command-H

Navigates to the home folder.

Shift-Command-K

Navigates to the network folder.