CommonDialog | +--FileDialog | +--OpenFileDialogpublic class OpenFileDialog
Displays a Windows common dialog box that lets you select a file for opening. Most of the functionality for this Object is in the base class FileDialog.
The following code fragment shows a common usage of this class:
OpenFileDialog ofd = new OpenFileDialog(); // set up filters, default extensions, etc . boolean didUserHitOK = ofd.run(); if (didUserHitOK) { String s = fd.getFilename(); // or for multiple files... // String [] rg = fd.getFilenames(); }