Class SafeFileChooser


  • public class SafeFileChooser
    extends java.lang.Object
    • Constructor Detail

      • SafeFileChooser

        public SafeFileChooser()
      • SafeFileChooser

        public SafeFileChooser​(java.lang.String currentDirectoryPath)
    • Method Detail

      • 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