Examples of showOpenDialog()


Examples of br.com.jteam.jfcm.gui.filechoser.ZipFileChooser.showOpenDialog()

   *
   */
  private void openFileDialog()
  {
    ZipFileChooser fileChooser = new ZipFileChooser();
    int returnVal = fileChooser.showOpenDialog(null);
    if (returnVal == JFileChooser.APPROVE_OPTION) {
      openFile(fileChooser.getSelectedFile());
    }
  }
}
View Full Code Here

Examples of carcel.dialogs.FileChooser.showOpenDialog()

        cargarFotoButt.addActionListener(new ActionListener() {

            public void actionPerformed(ActionEvent e) {
                FileChooser chooser = new FileChooser();
                int returnVal = chooser.showOpenDialog(PresoController.this);
                if (returnVal == JFileChooser.APPROVE_OPTION) {
                    try {
                        File file = chooser.getSelectedFile();
                        if (file.exists()) {
                            System.out.println("File " + file.getPath());
View Full Code Here

Examples of com.atolsystems.atolutilities.AFileChooser.showOpenDialog()

        fileChooser.setDialogTitle("Select a file to save random data");
        FileNameExtensionFilter filter = new FileNameExtensionFilter("raw data file", "dat");
        fileChooser.addChoosableFileFilter(filter);
        fileChooser.setAcceptAllFileFilterUsed(true);
        long start = System.nanoTime();
        int option = fileChooser.showOpenDialog(null);
        deadTime += System.nanoTime() - start;
        fileChooser.dispose();
        if (option != JFileChooser.APPROVE_OPTION) {
            throw new StopRequestFromUserException();//if user give up, we give up too...
        }
View Full Code Here

Examples of com.jidesoft.swing.FolderChooser.showOpenDialog()

      fc.setAvailableButtons(FolderChooser.BUTTON_ALL);
      fc.setMultiSelectionEnabled(multiple);
      fc.setDialogTitle("");
     
      // show it
      int result = fc.showOpenDialog(null);
      if (result == FolderChooser.APPROVE_OPTION) {
        // collect & save
        List<String> s = fc.getRecentList();
        s.add(0, fc.getSelectedFile().getAbsolutePath());
        if (s.size() >= 10) {
View Full Code Here

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

              bulkInsertMenuItem.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent evt) {
                  JDirectoryChooser chooser = new JDirectoryChooser();
                  chooser.setShowingCreateDirectory(false);
                  chooser.setDialogTitle(Libelle.getLibelle("selectionEmplacement"));
                  int choice = chooser.showOpenDialog(me);

                  if(choice != JDirectoryChooser.CANCEL_OPTION) {
                    BulkInsertSelection inst = new BulkInsertSelection(me);
                    inst.setVisible(true);
                    analyseMedia = new AnalyseMediaThread(inst,chooser.getSelectedFile().getAbsolutePath());
View Full Code Here

Examples of com.tulskiy.musique.gui.dialogs.TreeFileChooser.showOpenDialog()

      final JButton btnBrowse = new JButton("Browse...");
      btnBrowse.setToolTipText("Choose custom folder via File Chooser dialog.");
      btnBrowse.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent arg0) {
              TreeFileChooser fc = new TreeFileChooser(btnBrowse, "Open folder", false);
              File[] files = fc.showOpenDialog();
              if (files != null) {
                try {
            txtCustomFolder.setText(files[0].getCanonicalPath());
          } catch (Exception e) {
            // TODO Auto-generated catch block
View Full Code Here

Examples of csa.gui.InternalFrameFileChoser.showOpenDialog()

    private void jButtonFileSelect1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonFileSelect1ActionPerformed
        InternalFrameFileChoser fc = new csa.gui.InternalFrameFileChoser();
        fc.setCurrentDirectory(new java.io.File("xml"+File.separator+"Tile"));
        FileNameExtensionFilter  filter = new  FileNameExtensionFilter("xml", "xml");
        fc.setFileFilter(filter);
        int r = fc.showOpenDialog(Configuration.getConfiguration().getMainFrame());
        if (r != fc.APPROVE_OPTION) return;
        String name = fc.getSelectedFile().getName();
        jTextFieldTileFile.setText(csa.util.UtilityString.replace(name, ".xml",""));
        jTextFieldTileFileActionPerformed(null);
}//GEN-LAST:event_jButtonFileSelect1ActionPerformed
View Full Code Here

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

      {
        if (!continueUnsavedChangesWarningIfNecessary())
          return;
       
        JFileChooser fc = new JasonFileChooser(EditorWindow.this.model.getExpansionDirectory());
        int returnValue = fc.showOpenDialog(EditorWindow.this);
        if (returnValue != JFileChooser.APPROVE_OPTION)
          return;
       
        File file = fc.getSelectedFile();
        if (file == null || !file.exists() || file.isDirectory())
View Full Code Here

Examples of eu.ha3.matmos.editor.filechooser.OggFileChooser.showOpenDialog()

 
  protected void addSoundDialog()
  {
    OggFileChooser fc = new OggFileChooser(this.edit.getSoundDirectory());
    fc.setMultiSelectionEnabled(true);
    int returnValue = fc.showOpenDialog(this);
    if (returnValue != JFileChooser.APPROVE_OPTION)
      return;
   
    File[] files = fc.getSelectedFiles();
    if (files.length == 0)
View Full Code Here

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

      {
        if (!continueUnsavedChangesWarningIfNecessary())
          return;
       
        JFileChooser fc = new JasonFileChooser(EditorWindow.this.model.getExpansionDirectory());
        int returnValue = fc.showOpenDialog(EditorWindow.this);
        if (returnValue != JFileChooser.APPROVE_OPTION)
          return;
       
        File file = fc.getSelectedFile();
        if (file == null || !file.exists() || file.isDirectory())
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.