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 classSafeFileChooser.SafeFileChooserThread
-
Field Summary
Fields Modifier and Type Field Description protected javax.swing.JFileChooserchooserprotected static java.util.ResourceBundleresourceBundleprotected static java.lang.StringresourceBundleName
-
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.FilegetCurrentDirectory()java.io.FilegetSelectedFile()protected static voidlocalizeJFileChooser()voidsetDialogTitle(java.lang.String dialogTitle)voidsetFileSelectionMode(int mode)intshowOpenDialog(java.awt.Component parent)intshowSaveDialog(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
-
-