Package gate.swing

Examples of gate.swing.XJFileChooser.showDialog()


      }
      fileChooser.setDialogTitle("Chose the template directory");
      fileChooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
      fileChooser.setResource("application.templatedir." + owner.theTarget.getName());

      if(fileChooser.showDialog(owner,"Choose Directory") == JFileChooser.APPROVE_OPTION) {
        try {
          final File file = fileChooser.getSelectedFile();
          String templateDir = file.getCanonicalPath();
          owner.setTemplateDirName(templateDir,null);
          jLabelTemplateDirPath.setText(templateDir);
View Full Code Here


      }
      fileChooser.setDialogTitle("Chose the output directory");
      fileChooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
      fileChooser.setResource("application.outputdir." + owner.theTarget.getName());

      if(fileChooser.showDialog(owner,"Choose Directory") == JFileChooser.APPROVE_OPTION) {
        try {
          final File file = fileChooser.getSelectedFile();
          String outputDir = file.getCanonicalPath();
          owner.setOutputDirName(outputDir,null);
          jLabelOutputDirPath.setText(outputDir);
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.