Listing 1 reveals a simple pattern for working with open and save file choosers: instantiate JFileChooser, invoke showOpenDialog() or showSaveDialog() to display an appropriate modal dialog box for ...
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) ...