Example usage for Java java.awt FileDialog fields, constructors, methods, implement or subclass
The text is from its open source code.
int | LOAD This constant value indicates that the purpose of the file dialog window is to locate a file from which to read. |
int | SAVE This constant value indicates that the purpose of the file dialog window is to locate a file to which to write. |
FileDialog(Frame parent, String title, int mode) Creates a file dialog window with the specified title for loading or saving a file. | |
FileDialog(Dialog parent, String title, int mode) Creates a file dialog window with the specified title for loading or saving a file. | |
FileDialog(Frame parent) Creates a file dialog for loading a file. | |
FileDialog(Dialog parent) Creates a file dialog for loading a file. | |
FileDialog(Frame parent, String title) Creates a file dialog window with the specified title for loading a file. | |
FileDialog(Dialog parent, String title) Creates a file dialog window with the specified title for loading a file. |
void | dispose() Releases all of the native screen resources used by this Window , its subcomponents, and all of its owned children. |
String | getDirectory() Gets the directory of this file dialog. |
String | getFile() Gets the selected file of this file dialog. |
File[] | getFiles() Returns files that the user selects. |
Dimension | getSize() Returns the size of this component in the form of a Dimension object. |
void | setDirectory(String dir) Sets the directory of this file dialog window to be the specified directory. |
void | setFile(String file) Sets the selected file for this file dialog window to be the specified file. |
void | setFilenameFilter(FilenameFilter filter) Sets the filename filter for this file dialog window to the specified filter. |
void | setLocation(int x, int y) The method changes the geometry-related data. |
void | setLocationRelativeTo(Component c) Sets the location of the window relative to the specified component according to the following scenarios. |
void | setModal(boolean modal) Specifies whether this dialog should be modal. |
void | setModalityType(ModalityType type) Sets the modality type for this dialog. |
void | setMode(int mode) Sets the mode of the file dialog. |
void | setMultipleMode(boolean enable) Enables or disables multiple file selection for the file dialog. |
void | setTitle(String title) Note: Some platforms may not support showing the user-specified title in a file dialog. |
void | setVisible(boolean b) Shows or hides this Dialog depending on the value of parameter b . |
void | show() Makes the Dialog visible. |