public class FileDialog extends Object
| Constructor and Description |
|---|
FileDialog() |
| Modifier and Type | Method and Description |
|---|---|
static String |
showFileDialog(boolean reading,
String fileType,
String fileTypeDescription,
String defaultName)
Show a file selector dialog to the user.
|
public static String showFileDialog(boolean reading, String fileType, String fileTypeDescription, String defaultName)
reading - Boolean; set to true if only existing files may be
selected, set to false if a non-existing file may be returned and new
directories may be created.
If reading is false and an existing file is selected that is not equal
to the defaultName, an overwrite warning dialog will be displayed.fileType - String; expected file typefileTypeDescription - String; description of expected file typedefaultName - String; path to directory shown initially in the
file selector dialog; if it ends on an existing file name, that file
is initially selectedCopyright © 2014 Delft University of Technology. All rights reserved.