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