Version: 1.0

Posted: 2003-04-30

Build Requirements: N/A

Runtime Requirements: Mac OS X Mac OS X 10.2 or later, Java 1.4.1 or later

View Source Code:

Download Sample (“FunWithFileDialogs.zip”, 35.3K)
Download Sample (“FunWithFileDialogs.dmg”, 93.9K)



Description

This sample demonstrates the behavior of the AWT FileChooser and Swing Aqua JFileChooser dialogs in Mac OS X, and the available runtime options to handle Mac-specific conditions in each class. They are: JFileChooser.packageIsTraversable (JFileChooser) JFileChooser.appBundleIsTraversable (JFileChooser) apple.awt.use-file-dialog-packages (FileDialog) This sample is for developers looking to handle Mac OS X-specific conditions in their AWT/Swing applications. Keep in mind that the FileDialog can still be used in Swing applications safely (and is recommended because it employs the native "Column" view), and that the runtime properties in question can be set on the fly as long as it's done before the relevant dialog instance is shown. They are neither permanent nor global. Requirements: Mac OS X 10.2 or later, Java 1.4.1 or later Keywords: filedialog java jfilechooser

Document Revision History

Date Notes
2003-04-30Demo of the AWT FileChooser and Swing Aqua JFileChooser, and available Mac-specific runtime options.

Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.