Fields
Name | Description |
---|---|
LOAD | This constant value indicates that the purpose of the file dialog window is to locate a file from which to read. |
SAVE | This constant value indicates that the purpose of the file dialog window is to locate a file to which to write. |
Constructors
Name | Description |
---|---|
FileDialog(Frame) | Creates a file dialog for loading a file. |
FileDialog(Frame, String) | Creates a file dialog window with the specified title for loading a file. |
FileDialog(Frame, String, int) | Creates a file dialog window with the specified title for loading or saving a file. |
Methods
Name | Description |
---|---|
addNotify() | Creates the file dialog's peer. |
getDirectory() | Gets the directory of this file dialog. |
getFile() | Gets the selected file of this file dialog. |
getFilenameFilter() | Determines this file dialog's filename filter. |
getMode() | Indicates whether this file dialog box is for loading from a file or for saving to a file. |
paramString() | Returns the parameter string representing the state of this file dialog window. |
setDirectory(String) | Sets the directory of this file dialog window to be the specified directory. |
setFile(String) | Sets the selected file for this file dialog window to be the specified file. |
setFilenameFilter(FilenameFilter) | Sets the filename filter for this file dialog window to the specified filter. |
setMode(int) | Sets the mode of the file dialog. |