Package java.awt

Examples of java.awt.FileDialog.show()


            // (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

         }
        // FileDialog aFD = new FileDialog(aFrame,aMessage,omode); // should be this but a bug in read mode
         FileDialog aFD = new FileDialog(aFrame,aMessage,xMode); // bug workaround ... user must type in
        aFD.setFile(fileName);
        try {
          aFD.show();
         
          aFile = new File(aFD.getDirectory().substring(0,aFD.getDirectory().length()-1),aFD.getFile());
        }
        catch (Exception e) {errMessage="Cancelled or error";return false;}
        return true;
View Full Code Here

                // (extend file dialog class to add more functionality/options?)
                fd = new FileDialog(parent, resource.getString("ExportDataTo"),
                        FileDialog.SAVE);
                // fd.setDirectory ("");
                fd.setFile("dash.txt");
                fd.show();
                lastDir = fd.getDirectory();
                lastFile = fd.getFile();
                if (lastFile != null)
                    exportInteractively(v, new File(lastDir, lastFile));
                break;
View Full Code Here

                // (extend file dialog class to add more functionality/options?)
                fd = new FileDialog(parent, resource
                        .getString("ExportHierarchyTo"), FileDialog.SAVE);
                // fd.setDirectory ("");
                fd.setFile("hierarch.txt");
                fd.show();
                lastFile = fd.getFile();
                if (lastFile != null) {
                    JDialog working;
                    working = new JDialog(parent, resource
                            .getString("ExportExportingDots"));
View Full Code Here

        fd = new FileDialog (parent,
                             resource.getString("ExportDataTo"),
                             FileDialog.SAVE);
        //fd.setDirectory ("");
        fd.setFile ("dash.txt");
        fd.show();
        lastDir = fd.getDirectory();
        lastFile = fd.getFile ();
        if (lastFile != null)
          exportInteractively(v, new File(lastDir, lastFile));
        break;
View Full Code Here

        fd = new FileDialog (parent,
                             resource.getString("ExportHierarchyTo"),
                             FileDialog.SAVE);
        //fd.setDirectory ("");
        fd.setFile ("hierarch.txt");
        fd.show();
        lastFile = fd.getFile ();
        if (lastFile != null) {
          JDialog working;
          working = new JDialog (parent, resource.getString("ExportExportingDots"));
          working.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
View Full Code Here

        System.out.println("rShowMessage \""+message+"\"");
    }
 
    public String rChooseFile(Rengine re, int newFile) {
  FileDialog fd = new FileDialog(new Frame(), (newFile==0)?"Select a file":"Select a new file", (newFile==0)?FileDialog.LOAD:FileDialog.SAVE);
  fd.show();
  String res=null;
  if (fd.getDirectory()!=null) res=fd.getDirectory();
  if (fd.getFile()!=null) res=(res==null)?fd.getFile():(res+fd.getFile());
  return res;
    }
View Full Code Here

        System.out.println("rShowMessage \""+message+"\"");
    }
 
    public String rChooseFile(Rengine re, int newFile) {
  FileDialog fd = new FileDialog(new Frame(), (newFile==0)?"Select a file":"Select a new file", (newFile==0)?FileDialog.LOAD:FileDialog.SAVE);
  fd.show();
  String res=null;
  if (fd.getDirectory()!=null) res=fd.getDirectory();
  if (fd.getFile()!=null) res=(res==null)?fd.getFile():(res+fd.getFile());
  return res;
    }
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.