Examples of showOpenDialog()


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

        }
        catch (Exception ex) {
          ex.printStackTrace();
        }
      }
      if (chooser.showOpenDialog(rootTabbedPane) == JFileChooser.APPROVE_OPTION) {
        File file = chooser.getSelectedFile();
        importPreviewMesh(file.getAbsolutePath());
      }
    }
    catch (Throwable ex) {
View Full Code Here

Examples of org.jwildfire.create.tina.swing.SoundFileChooser.showOpenDialog()

        }
        catch (Exception ex) {
          ex.printStackTrace();
        }
      }
      if (chooser.showOpenDialog(flameRootPanel) == JFileChooser.APPROVE_OPTION) {
        File file = chooser.getSelectedFile();
        prefs.setLastInputSoundFile(file);
        project.setSoundFilename(jLayer, file.getAbsolutePath());
        enableControls();
      }
View Full Code Here

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

                    catch (Exception ex) {
                      ex.printStackTrace();
                    }
                  }
                }
                if (chooser.showOpenDialog(centerPanel) == JFileChooser.APPROVE_OPTION) {
                  File file = chooser.getSelectedFile();
                  String valStr = file.getAbsolutePath();
                  byte[] valByteArray = valStr != null ? valStr.getBytes() : null;
                  var.getFunc().setRessource(rName, valByteArray);
                }
View Full Code Here

Examples of org.netbeans.api.project.ant.FileChooser.showOpenDialog()

        if (lastFolder != null) {
            chooser.setCurrentDirectory (lastFolder);
        } else if (baseFolder != null) {
            chooser.setCurrentDirectory (baseFolder);
        }
        if (chooser.showOpenDialog(this) == JFileChooser.APPROVE_OPTION) {
            try {
                lastFolder = chooser.getCurrentDirectory();
                addFiles (chooser.getSelectedPaths(), area != null ? area.getLocation() : null);
            } catch (MalformedURLException mue) {
                ErrorManager.getDefault().notify(mue);
View Full Code Here

Examples of org.openide.filesystems.FileChooserBuilder.showOpenDialog()

    private void ivyPropertiesFileAddBtnActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_ivyPropertiesFileAddBtnActionPerformed
        FileChooserBuilder builder = new FileChooserBuilder(Utilities.FILE_CHOOSER_BUILDER_KEY);
        builder.setTitle(NbBundle.getMessage(CustomizerPanel.class, "CustomizerPanel.propertiesFileChooser.title"));
        builder.addFileFilter(PROPERTIS_FILE_FILTER);
        File ivyPropertiesFileChosen = builder.showOpenDialog();

        if (ivyPropertiesFileChosen != null) {
            try {
                DefaultListModel propertyFileListModel = (DefaultListModel) propertiesFileList.getModel();
                String filePath = ivyPropertiesFileChosen.getCanonicalPath();
View Full Code Here

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

    {
      try
      {
        final XulFileDialog fd = (XulFileDialog) document.createElement("filedialog"); //$NON-NLS-1$
        fd.setModalParent(LookAndFeelStep.this.getDesignTimeContext().getParentWindow());
        fd.showOpenDialog();
        file = (File) fd.getFile();
        if (file != null)
        { // If the file is null then the user hit cancel
          final String filePath = file.getAbsolutePath();
          final XulTextbox fileTextBox = (XulTextbox) document.getElementById(WIZARD_FILENAME_TB_ID);
View Full Code Here

Examples of org.psafix.folderchooser.JFolderChooser.showOpenDialog()

      File outputFile = new File(startingPath);
      if (outputFile.exists()) {
        chooser.setCurrentDirectory(outputFile);
      }
      chooser.setTitle(title);
      int choice = chooser.showOpenDialog(parent);
      if (choice == JFolderChooser.APPROVE_OPTION) {
        return chooser.getSelectedFile().getPath();
      }
    } catch (Exception e) {
      JOptionPane.showMessageDialog(null, "There has been an error:" + StringHelper.newline + e);
View Full Code Here

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

        else if(type == FileChooserType.OPEN_GENERIC){
            jfc = jfc_generic;
            title = "Open";
        }
        jfc.setDialogTitle(title);
        FileChooserResponse status = jfc.showOpenDialog(parent);
        if(status == FileChooserResponse.APPROVE_OPTION){
            File f = jfc.getSelectedFile();
            saveLastDir(type, f.getParentFile());
            return f;
        }
View Full Code Here

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

        if (chooser.showSaveDialog(null)==JFileChooser.APPROVE_OPTION) {
          if (txtField != null)
            txtField.setText(chooser.getSelectedFile().getAbsolutePath());
        }
      } else {
        if (chooser.showOpenDialog(null)==JFileChooser.APPROVE_OPTION) {
          if (txtField != null)
            txtField.setText(chooser.getSelectedFile().getAbsolutePath());
        }
       
      }
View Full Code Here

Examples of weka.gui.ConverterFileChooser.showOpenDialog()

    } // c'tor

    public void actionPerformed(ActionEvent ae) {
      ConverterFileChooser fc = new ConverterFileChooser(System.getProperty("user.dir"));
      fc.setDialogTitle("Set Data File");
      int rval = fc.showOpenDialog(GUI.this);

      if (rval == JFileChooser.APPROVE_OPTION) {
        AbstractFileLoader loader = fc.getLoader();
        try {
          if (loader != null)
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.