Package com.pixelmed.display
Class SafeFileChooser
- java.lang.Object
-
- com.pixelmed.display.SafeFileChooser
-
public class SafeFileChooser extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SafeFileChooser.SafeFileChooserThread
-
Field Summary
Fields Modifier and Type Field Description protected javax.swing.JFileChooser
chooser
protected static java.util.ResourceBundle
resourceBundle
protected static java.lang.String
resourceBundleName
-
Constructor Summary
Constructors Constructor Description SafeFileChooser()
SafeFileChooser(java.lang.String currentDirectoryPath)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Method Detail
-
localizeJFileChooser
protected static void localizeJFileChooser()
-
setFileSelectionMode
public void setFileSelectionMode(int mode) throws java.lang.IllegalArgumentException
- Throws:
java.lang.IllegalArgumentException
-
showOpenDialog
public int showOpenDialog(java.awt.Component parent) throws java.awt.HeadlessException
- Throws:
java.awt.HeadlessException
-
getCurrentDirectory
public java.io.File getCurrentDirectory()
-
getSelectedFile
public java.io.File getSelectedFile()
-
showSaveDialog
public int showSaveDialog(java.awt.Component parent) throws java.awt.HeadlessException
- Throws:
java.awt.HeadlessException
-
setDialogTitle
public void setDialogTitle(java.lang.String dialogTitle) throws java.awt.HeadlessException
- Throws:
java.awt.HeadlessException
-
-