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
IllegalArgumentException
public int showOpenDialog(Component parent) throws HeadlessException
HeadlessException
public File getCurrentDirectory()
public File getSelectedFile()
public int showSaveDialog(Component parent) throws HeadlessException
HeadlessException
public void setDialogTitle(String dialogTitle) throws HeadlessException
HeadlessException