public class SafeFileChooser extends Object
Modifier and Type | Class and Description |
---|---|
static class |
SafeFileChooser.SafeFileChooserThread |
Modifier and Type | Field and Description |
---|---|
protected JFileChooser |
chooser |
protected static ResourceBundle |
resourceBundle |
protected static String |
resourceBundleName |
Constructor and Description |
---|
SafeFileChooser() |
SafeFileChooser(String currentDirectoryPath) |
Modifier and Type | Method and Description |
---|---|
File |
getCurrentDirectory() |
File |
getSelectedFile() |
protected static void |
localizeJFileChooser() |
void |
setDialogTitle(String dialogTitle) |
void |
setFileSelectionMode(int mode) |
int |
showOpenDialog(Component parent) |
int |
showSaveDialog(Component parent) |
protected JFileChooser chooser
protected static ResourceBundle resourceBundle
protected static String resourceBundleName
public SafeFileChooser()
public SafeFileChooser(String currentDirectoryPath)
public File getCurrentDirectory()
public File getSelectedFile()
protected static void localizeJFileChooser()
public void setDialogTitle(String dialogTitle) throws HeadlessException
HeadlessException
public void setFileSelectionMode(int mode) throws IllegalArgumentException
IllegalArgumentException
public int showOpenDialog(Component parent) throws HeadlessException
HeadlessException
public int showSaveDialog(Component parent) throws HeadlessException
HeadlessException