java.awt.FileDialog (JDK 1.0)
This class represents a file selection dialog box. The constants LOAD and SAVE are values of an optional constructor argument that specifies whether the dialog should be an Open File dialog or a Save As dialog. You may specify a FilenameFilter object to control which files are displayed in the dialog.
The inherited show() method pops the dialog up. For dialogs of this type, show() blocks, not returning until the user has selected a file and dismissed the dialog (which pops down automatically--you don't have to call hide()). Once show() has returned, use getFile() to get the name of the file the user selected.
public classFileDialogextends Dialog { //Public Constructors1.1 publicFileDialog(Frameparent); publicFileDialog(Frameparent, Stringtitle); publicFileDialog(Frameparent, Stringtitle, intmode); //Constantspublic static final intLOAD; public static final intSAVE; //Public Instance Methodspublic voidaddNotify(); //Overrides Dialogpublic StringgetDirectory(); public StringgetFile(); public FilenameFiltergetFilenameFilter(); public intgetMode(); public synchronized voidsetDirectory(Stringdir); public synchronized voidsetFile(Stringfile); public synchronized voidsetFilenameFilter(FilenameFilterfilter); 1.1 public voidsetMode(intmode); //Protected Instance Methodsprotected StringparamString(); //Overrides Dialog}
Hierarchy:
Object->Component(ImageObserver, MenuContainer, Serializable)-> Container->Window->Dialog->FileDialog
Passed To:
Toolkit.createFileDialog()