Package java.awt

Examples of java.awt.FileDialog.show()


      fDlg  = new FileDialog( frame, AbstractApplication.getApplication().getResourceString(
        "fileDlgOpen" ), FileDialog.LOAD );
      fDlg.setFilenameFilter( doc );
      // fDlg.setDirectory();
      // fDlg.setFile();
      fDlg.show();
      frame.dispose();
      strDir  = fDlg.getDirectory();
      strFile  = fDlg.getFile();
     
      if( strFile == null ) return null;   // means the dialog was cancelled
View Full Code Here


                }
            } else {
                FileDialog f = new FileDialog(fMain, "Restore FileName",
                                              FileDialog.LOAD);

                f.show();

                String sFileName = f.getFile();
                String Path      = f.getDirectory();

                if ((sFileName == null) || (sFileName.equals(""))) {
View Full Code Here

                }
            } else {
                FileDialog f = new FileDialog(fMain, "Dump FileName",
                                              FileDialog.SAVE);

                f.show();

                String sFileName = f.getFile();
                String Path      = f.getDirectory();

                if ((sFileName == null) || (sFileName.equals(""))) {
View Full Code Here

            iMaxRows = 0;
        } else if (s.equals("Load Settings...")) {
            FileDialog f = new FileDialog(fMain, "Load Settings",
                                          FileDialog.LOAD);

            f.show();

            String file = f.getDirectory() + f.getFile();

            if (file != null) {
                LoadPrefs(file);
View Full Code Here

            }
        } else if (s.equals("Save Settings...")) {
            FileDialog f = new FileDialog(fMain, "Save Settings",
                                          FileDialog.SAVE);

            f.show();

            String file = f.getDirectory() + f.getFile();

            if (file != null) {
                SavePrefs(file);
View Full Code Here

            // (ulrivo): set default directory if set from command line
            if (defDirectory != null) {
                f.setDirectory(defDirectory);
            }

            f.show();

            String file = f.getFile();

            if (file != null) {
                StringBuffer buf = new StringBuffer();
View Full Code Here

            // (ulrivo): set default directory if set from command line
            if (defDirectory != null) {
                f.setDirectory(defDirectory);
            }

            f.show();

            String file = f.getFile();

            if (file != null) {
                DatabaseManagerCommon.writeFile(f.getDirectory() + file,
View Full Code Here

            // (ulrivo): set default directory if set from command line
            if (defDirectory != null) {
                f.setDirectory(defDirectory);
            }

            f.show();

            String dir  = f.getDirectory();
            String file = f.getFile();

            if (dir != null) {
View Full Code Here

            // (ulrivo): set default directory if set from command line
            if (defDirectory != null) {
                f.setDirectory(defDirectory);
            }

            f.show();

            String file = f.getFile();

            if (file != null) {
                showResultInText();
View Full Code Here

        strDir  = f.getParent();
        strFile = f.getName();
        if( strDir != null ) fDlg.setDirectory( strDir );
        fDlg.setFile( strFile );
      }
      fDlg.show();
      strDir  = fDlg.getDirectory();
      strFile  = fDlg.getFile();
     
      if( strFile == null ) return null;   // means the dialog was cancelled
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.