Create a file chooser by instantiating JFileChooser via one of its constructors, such as JFileChooser (), which initializes the file chooser to the user’s default directory. After creating a file ...
Here’s a simple trick you can use in OS X 10.5’s Open dialog box. Say you’ve decided to open a saved file in a given application. You press Command-O (or select File -> Open if you’re menu-inclined) ...