public class SafeFileChooser extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
SafeFileChooser.SafeFileChooserThread |
| Constructor and Description |
|---|
SafeFileChooser() |
SafeFileChooser(String currentDirectoryPath) |
| Modifier and Type | Method and Description |
|---|---|
File |
getCurrentDirectory() |
File |
getSelectedFile() |
void |
setDialogTitle(String dialogTitle) |
void |
setFileSelectionMode(int mode) |
int |
showOpenDialog(Component parent) |
int |
showSaveDialog(Component parent) |
public SafeFileChooser()
public SafeFileChooser(String currentDirectoryPath)
public void setFileSelectionMode(int mode)
throws IllegalArgumentException
IllegalArgumentExceptionpublic int showOpenDialog(Component parent) throws HeadlessException
HeadlessExceptionpublic File getCurrentDirectory()
public File getSelectedFile()
public int showSaveDialog(Component parent) throws HeadlessException
HeadlessExceptionpublic void setDialogTitle(String dialogTitle) throws HeadlessException
HeadlessException