Examples of showOpenDialog()


Examples of javax.swing.JFileChooser.showOpenDialog()

   */
  private void onPacourir() {
    JFileChooser chooser = new JFileChooser(); //cr�ation dun nouveau filechooser
    chooser.setFileSelectionMode(JFileChooser.FILES_ONLY);
    chooser.setApproveButtonText(LangageManager.getProperty("common.dialog.select")); //intitul� du bouton
    if (chooser.showOpenDialog(null) == JFileChooser.APPROVE_OPTION)
      getJTextField_MediaPlayer().setText(chooser.getSelectedFile().getAbsolutePath());
  }

  public JButton getButton() {
    return new JButton(LangageManager.getProperty("generaloptionpanel.button"), IMAGE);
View Full Code Here

Examples of javax.swing.JFileChooser.showOpenDialog()

        return current;
      }
    }
    JFileChooser chooser = new JFileChooser();
    chooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
    int result = chooser.showOpenDialog(null);
    if (result == JOptionPane.OK_OPTION) {
      return chooser.getSelectedFile();
    }
    return null;
  }
View Full Code Here

Examples of javax.swing.JFileChooser.showOpenDialog()

        for (int i = 0; i < filefilters.length; i++) {
            fc.removeChoosableFileFilter(filefilters[i]);
        }
        fc.addChoosableFileFilter(ganttFilter);

        int returnVal = fc.showOpenDialog(myWorkbenchFacade.getMainFrame());
        if (returnVal == JFileChooser.APPROVE_OPTION) {
            final JFileChooser jfc = fc;
            Document document = getDocumentManager().getDocument(
                    jfc.getSelectedFile().getAbsolutePath());
            openProject(document, project);
View Full Code Here

Examples of javax.swing.JFileChooser.showOpenDialog()

    public File show() {
        File result = null;
        JFileChooser fc = new JFileChooser(myStartDirectory);
        fc.addChoosableFileFilter(new GanttXMLFileFilter());

        int returnVal = fc.showOpenDialog(null);
        if (returnVal == JFileChooser.APPROVE_OPTION) {
            result = fc.getSelectedFile();
        }
        return result;
    }
View Full Code Here

Examples of modbuspal.toolkit.XFileChooser.showOpenDialog()

        // create dialog
        JFileChooser loadDialog = new XFileChooser(XFileChooser.SLAVE_FILE);

        // show dialog
        setStatus("Importing...");
        loadDialog.showOpenDialog(this);

        // get selected file
        File importFile = loadDialog.getSelectedFile();

        if( importFile == null )
View Full Code Here

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

    OpenAnalysisJobFileChooserAccessory accessory = new OpenAnalysisJobFileChooserAccessory(_windowContext,
        _configuration, fileChooser, _openAnalysisJobActionListenerProvider);
    fileChooser.setAccessory(accessory);

    fileChooser.setFileFilter(FileFilters.ANALYSIS_XML);
    int openFileResult = fileChooser.showOpenDialog((Component) event.getSource());

    if (openFileResult == JFileChooser.APPROVE_OPTION) {
      File file = fileChooser.getSelectedFile();
      openFile(file);
    }
View Full Code Here

Examples of org.geoforge.guillc.filechooser.GfrFileChooserExistingDir.showOpenDialog()

            GfrFileChooserExistingDir chooser = new GfrFileChooserExistingDir(
                  new java.io.File(_pnlFolderParent_.getValue()),
                  strChooserTitle);

            if (chooser.showOpenDialog(this) == JFileChooser.APPROVE_OPTION)
            {
               File fle = chooser.getSelectedFile();
              
               if (fle != null)
               {
View Full Code Here

Examples of org.jsurveylib.gui.swing.widget.Chooser.showOpenDialog()

            open.setMnemonic(KeyEvent.VK_O);
            open.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent ae) {
                    Chooser chooser = new Chooser();
                    chooser.addChoosableFileFilter(new FileNameExtensionFilter("XML Files", "xml"));
                    if (chooser.showOpenDialog(frame) == JFileChooser.APPROVE_OPTION) {
                        try {
                            survey.loadXMLAnswers(chooser.getSelectedFile().getAbsolutePath());
                        } catch (IOException e) {
                            //TODO: i18n this error message
                            JOptionPane.showMessageDialog(frame, e.getMessage(), survey.getTitle(), JOptionPane.ERROR_MESSAGE);
View Full Code Here

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

        }
        catch (Exception ex) {
          ex.printStackTrace();
        }
      }
      if (chooser.showOpenDialog(rootTabbedPane) == JFileChooser.APPROVE_OPTION) {
        File file = chooser.getSelectedFile();
        List<Flame> flames = new FlameReader(prefs).readFlames(file.getAbsolutePath());
        Flame flame = flames.get(0);
        prefs.setLastInputFlameFile(file);
        if (flame != null) {
View Full Code Here

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

        }
        catch (Exception ex) {
          ex.printStackTrace();
        }
      }
      if (chooser.showOpenDialog(poolFlamePreviewPnl) == JFileChooser.APPROVE_OPTION) {
        File file = chooser.getSelectedFile();
        project = new JWFDanceReader().readProject(file.getAbsolutePath());
        refreshProjectFlames();
        enableControls();
      }
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.