Examples of showSaveDialog()


Examples of org.pentaho.ui.xul.components.XulFileDialog.showSaveDialog()

    File selectedFile = workspace.getWorkspaceLocation();
    if (saveAs || selectedFile == null) {
      // display file dialog
      XulFileDialog fc = (XulFileDialog) document.createElement("filedialog");
      // TODO: last browsed in directory?
      RETURN_CODE retVal = fc.showSaveDialog();
      if (retVal == RETURN_CODE.OK) {
        selectedFile = (File) fc.getFile();
      } else {
        return false;
      }
View Full Code Here

Examples of org.wiztools.filechooser.FileChooser.showSaveDialog()

        else if(type == FileChooserType.SAVE_HISTORY) {
            jfc = jfc_history;
            title = "Save History";
        }
        jfc.setDialogTitle(title);
        FileChooserResponse status = jfc.showSaveDialog(frame);
        if(status == FileChooserResponse.APPROVE_OPTION){
            File f = jfc.getSelectedFile();
           
            if(f == null){
                return null;
View Full Code Here

Examples of tiled.mapeditor.util.ConfirmingFileChooser.showSaveDialog()

            }
        }

        chooser.setFileFilter(byExtensionFilter);

        int result = chooser.showSaveDialog(editor.getAppFrame());
        if (result == JFileChooser.APPROVE_OPTION)
        {
            savingCancelled = false;
            TiledFileFilter saver = (TiledFileFilter) chooser.getFileFilter();
            String selectedFile = chooser.getSelectedFile().getAbsolutePath();
View Full Code Here

Examples of versusSNP.gui.widgets.MyFileChooser.showSaveDialog()

          chooser.addChoosableFileFilter(filter);
        chooser.setFileFilter(filters[0]);
      }
      if (isDirectory) chooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
      if (operationType == JFileChooser.SAVE_DIALOG) {
        if (chooser.showSaveDialog(null)==JFileChooser.APPROVE_OPTION) {
          if (txtField != null)
            txtField.setText(chooser.getSelectedFile().getAbsolutePath());
        }
      } else {
        if (chooser.showOpenDialog(null)==JFileChooser.APPROVE_OPTION) {
View Full Code Here

Examples of weka.gui.ConverterFileChooser.showSaveDialog()

        JButton jBtFile = new JButton("Browse");
        jBtFile.addActionListener(new ActionListener() {
          public void actionPerformed(ActionEvent ae) {
            ConverterFileChooser fc = new ConverterFileChooser(System.getProperty("user.dir"));
            fc.setDialogTitle("Save Instances As");
            int rval = fc.showSaveDialog(GUI.this);

            if (rval == JFileChooser.APPROVE_OPTION) {
              String filename = fc.getSelectedFile().toString();
              jTfFile.setText(filename);
            }
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.