Examples of showSaveDialog()


Examples of org.eobjects.datacleaner.widgets.DCFileChooser.showSaveDialog()

    }

    DCFileChooser fileChooser = new DCFileChooser(_userPreferences.getAnalysisJobDirectory());
    fileChooser.setFileFilter(FileFilters.ANALYSIS_XML);

    int result = fileChooser.showSaveDialog(_window.toComponent());
    if (result == JFileChooser.APPROVE_OPTION) {
      File file = fileChooser.getSelectedFile();

      if (!file.getName().endsWith(".xml")) {
        file = new File(file.getParentFile(), file.getName() + FileFilters.ANALYSIS_XML.getExtension());
View Full Code Here

Examples of org.eobjects.datacleaner.widgets.DCFileChooser.showSaveDialog()

    saveAsCsvItem.addActionListener(new ActionListener() {
      @Override
      public void actionPerformed(ActionEvent e) {
        DCFileChooser fileChooser = new DCFileChooser(_userPreferences.getAnalysisJobDirectory());
        fileChooser.addChoosableFileFilter(FileFilters.CSV);
        if (fileChooser.showSaveDialog((Component) event.getSource()) == JFileChooser.APPROVE_OPTION) {
          File selectedFile = fileChooser.getSelectedFile();
          if (selectedFile.getName().indexOf('.') == -1) {
            selectedFile = new File(selectedFile.getPath() + ".csv");
          }
View Full Code Here

Examples of org.geotools.swing.data.JFileDataStoreChooser.showSaveDialog()

        JFileDataStoreChooser chooser = new JFileDataStoreChooser("shp");
        chooser.setDialogTitle("Save shapefile");
        chooser.setSelectedFile(new File(newPath));

        int returnVal = chooser.showSaveDialog(null);

        if (returnVal != JFileDataStoreChooser.APPROVE_OPTION) {
            // the user cancelled the dialog
            System.exit(0);
        }
View Full Code Here

Examples of org.jsurveylib.gui.swing.widget.WarnIfExistsChooser.showSaveDialog()

                //if the file filter is "All Files", WarnIfExistsChooser won't use this value
                return "xml";
            }
        };
        chooser.addChoosableFileFilter(new FileNameExtensionFilter("XML Files", "xml"));
        if (chooser.showSaveDialog(frame) == JFileChooser.APPROVE_OPTION) {
            try {
                survey.saveXMLAnswers(chooser.getSelectedFile().getAbsolutePath());
            } catch (IOException e) {
                throw new RuntimeException(e);
            }
View Full Code Here

Examples of org.jwildfire.create.tina.swing.FlameFileChooser.showSaveDialog()

            }
            catch (Exception ex) {
              ex.printStackTrace();
            }
          }
          if (chooser.showSaveDialog(rootTabbedPane) == JFileChooser.APPROVE_OPTION) {
            File file = chooser.getSelectedFile();
            new FlameWriter().writeFlame(currFlame, file.getAbsolutePath());
            currFlame.setLastFilename(file.getName());
            prefs.setLastOutputFlameFile(file);
          }
View Full Code Here

Examples of org.jwildfire.create.tina.swing.JWFDanceFileChooser.showSaveDialog()

        }
        catch (Exception ex) {
          ex.printStackTrace();
        }
      }
      if (chooser.showSaveDialog(poolFlamePreviewPnl) == JFileChooser.APPROVE_OPTION) {
        File file = chooser.getSelectedFile();
        new JWFDanceWriter().writeProject(project, file.getAbsolutePath());
        prefs.setLastOutputJWFMovieFile(file);
      }
    }
View Full Code Here

Examples of org.jwildfire.create.tina.swing.MapFileChooser.showSaveDialog()

          }
          catch (Exception ex) {
            ex.printStackTrace();
          }
        }
        if (chooser.showSaveDialog(rootPanel) == JFileChooser.APPROVE_OPTION) {
          File file = chooser.getSelectedFile();
          RGBPalette gradient = layer.getPalette().makeCopy();
          gradient.setFlam3Name(file.getName());
          new MapGradientWriter().writeGradient(gradient, file.getAbsolutePath());
          tinaController.showStatusMessage(gradient, "gradient saved to disc");
View Full Code Here

Examples of org.jwildfire.create.tina.swing.MeshFileChooser.showSaveDialog()

          }
          catch (Exception ex) {
            ex.printStackTrace();
          }
        }
        if (chooser.showSaveDialog(rootTabbedPane) == JFileChooser.APPROVE_OPTION) {
          final File outFile = chooser.getSelectedFile();
          prefs.setLastMeshFile(outFile);

          MeshGenGenerateThreadFinishEvent finishEvent = new MeshGenGenerateThreadFinishEvent() {
View Full Code Here

Examples of org.jwildfire.create.tina.swing.SunflowSceneFileChooser.showSaveDialog()

        }
        catch (Exception ex) {
          ex.printStackTrace();
        }
      }
      if (chooser.showSaveDialog(rootTabbedPane) == JFileChooser.APPROVE_OPTION) {
        File file = chooser.getSelectedFile();
        exportMeshToSunflow(currPreviewMesh.getMesh(), file.getAbsolutePath());
      }
    }
    catch (Throwable ex) {
View Full Code Here

Examples of org.jwildfire.swing.ImageFileChooser.showSaveDialog()

          }
          catch (Exception ex) {
            ex.printStackTrace();
          }
        }
        if (chooser.showSaveDialog(centerPanel) == JFileChooser.APPROVE_OPTION) {
          QualityProfile qualProfile = getQualityProfile();
          ResolutionProfile resProfile = getResolutionProfile();
          final Flame flame = getCurrFlame();
          final File file = chooser.getSelectedFile();
          prefs.setLastOutputImageFile(file);
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.