Examples of showSaveDialog()


Examples of com.eastmountain.chinese.gui.FileChooser.showSaveDialog()

        if ( ! ( chineseElementProperties  == null ) ) {

            FileChooser fileChooser = new FileChooser();

            int returnVal = fileChooser.showSaveDialog( null );

            if ( returnVal == JFileChooser.APPROVE_OPTION) {

                outputFile = fileChooser.getSelectedFile().getName();
View Full Code Here

Examples of com.l2fprod.common.swing.JDirectoryChooser.showSaveDialog()

  {
    JDirectoryChooser chooser = new JDirectoryChooser( defaultDirectory );
    chooser.setDialogTitle( title );
    chooser.setShowingCreateDirectory( true );
    chooser.setPreferredSize( new Dimension( 400, 400 ) );
    if( chooser.showSaveDialog( getParent() ) != JFileChooser.APPROVE_OPTION )
      return null;

    return chooser.getSelectedFile();

    // JFileChooser chooser = getChooser( action );
View Full Code Here

Examples of de.yaams.extensions.basemap.tiled.mapeditor.util.ConfirmingFileChooser.showSaveDialog()

    }

    // Make sure the "All Files" filter is selected by default
    chooser.setFileFilter(defaultFilter);

    if (chooser.showSaveDialog(appFrame) == JFileChooser.APPROVE_OPTION) {
      saveMapImage(chooser.getSelectedFile().getAbsolutePath());
    }
  }

  /**
 
View Full Code Here

Examples of eu.ha3.matmos.editor.filechooser.JasonFileChooser.showSaveDialog()

    this.mntmFSaveAs.addActionListener(new ActionListener() {
      @Override
      public void actionPerformed(ActionEvent e)
      {
        JFileChooser fc = new OverwriteWarningJasonFileChooser(EditorWindow.this.model.getExpansionDirectory());
        int returnValue = fc.showSaveDialog(EditorWindow.this);
        if (returnValue != JFileChooser.APPROVE_OPTION)
          return;
       
        File file = fc.getSelectedFile();
        if (file == null || file.isDirectory())
View Full Code Here

Examples of eu.ha3.matmos.editor.filechooser.OverwriteWarningJasonFileChooser.showSaveDialog()

    this.mntmFSaveAs.addActionListener(new ActionListener() {
      @Override
      public void actionPerformed(ActionEvent e)
      {
        JFileChooser fc = new OverwriteWarningJasonFileChooser(EditorWindow.this.model.getExpansionDirectory());
        int returnValue = fc.showSaveDialog(EditorWindow.this);
        if (returnValue != JFileChooser.APPROVE_OPTION)
          return;
       
        File file = fc.getSelectedFile();
        if (file == null || file.isDirectory())
View Full Code Here

Examples of gate.swing.XJFileChooser.showSaveDialog()

           && ((CorpusController)theTarget).getCorpus() != null) ?
        "WITH" : "WITHOUT") + " corpus.");
      fileChooser.setFileSelectionMode(JFileChooser.FILES_AND_DIRECTORIES);
      fileChooser.setResource("application." + theTarget.getName());

      if(fileChooser.showSaveDialog(this) == JFileChooser.APPROVE_OPTION) {
        final File gappFile = fileChooser.getSelectedFile();
        final JPanel parentPanel = this;
        Runnable runnable = new Runnable() {
          public void run() {
            try {
View Full Code Here

Examples of javafx.stage.FileChooser.showSaveDialog()

       
        // ------------- SAVE AND COPY --------------------------------------------
        saveCSS.setOnAction(new EventHandler<ActionEvent>() {
            @Override public void handle(ActionEvent arg0) {
                FileChooser fileChooser = new FileChooser();
                File file = fileChooser.showSaveDialog(propertiesPanel.getScene().getWindow());
                if (file != null && !file.exists() && file.getParentFile().isDirectory()) {
                    FileWriter writer = null;
                    try {
                        writer = new FileWriter(file);
                        writer.write(createCSS(true));
View Full Code Here

Examples of javax.swing.JFileChooser.showSaveDialog()

    saveButton.setMnemonic('S');
    saveButton.setToolTipText("Saves the output to a file");
    saveButton.addActionListener(new ActionListener(){
      public void actionPerformed(ActionEvent evt){
        JFileChooser filechooser = new JFileChooser();
        int result = filechooser.showSaveDialog(dialog);
        if (result == JFileChooser.APPROVE_OPTION) {
          try {
            BufferedWriter writer = new BufferedWriter(
                                      new FileWriter(
                                        filechooser.getSelectedFile()));
View Full Code Here

Examples of javax.swing.JFileChooser.showSaveDialog()

        final StatusBar bar = aw.getStatusBar();
        ProgressMonitor pm = bar.getProgressMonitor();

        JFileChooser fc = new JFileChooser();
        fc.setDialogTitle(tr.get(ID + ".fileDialog"));
        int res = fc.showSaveDialog(aw.getControl());
        if (res != JFileChooser.APPROVE_OPTION) {
            bar.setMessage(tr.get(ID + ".noFileSelected"));
            return;
        }
        final File f = fc.getSelectedFile();
View Full Code Here

Examples of javax.swing.JFileChooser.showSaveDialog()

          }
        }
      } else if (src == save) {
        JFileChooser chooser = JFileChoosers.createSelected(lastFile);
        chooser.setDialogTitle(Strings.get("saveButton"));
        int choice = chooser.showSaveDialog(HexFrame.this);
        if (choice == JFileChooser.APPROVE_OPTION) {
          File f = chooser.getSelectedFile();
          try {
            HexFile.save(f, model);
            lastFile = f;
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.