Retired Document
Important: This sample code may not represent best practices for current development. The project may use deprecated symbols and illustrate technologies and techniques that are no longer recommended.
FunWithFileDialogs
Last Revision: | Version 1.0, 2003-04-30 Demo of the AWT FileChooser and Swing Aqua JFileChooser, and available Mac-specific runtime options. |
Build Requirements: | |
Runtime Requirements: | Mac OS X Mac OS X 10.2 or later, Java 1.4.1 or later |
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
Copyright © 2003 Apple Computer, Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2003-04-30