Examples of ProgressDialog


Examples of entagged.tageditor.ProgressDialog

      jButtonDesindex.setText(LangageManager.getProperty("miage.unindex"));
      jButtonDesindex.setIcon( ResourcesRepository.getImageIcon("noindex.gif"));
      jButtonDesindex.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent e) {
         
          final ProgressDialog progressDialog = new ProgressDialog(
              TagEdit, LangageManager.getProperty("miage.foldertoupdate"),
              LangageManager.getProperty("miage.updatingfolder"));
          progressDialog.setAbortable(false);
          progressDialog.hideAbortButton();
          progressDialog.setModal(true);
          new Thread(new Runnable() {
            public void run() {
              TreeUtil.supprimerdossier(myTreeSelectionListener.path);
              progressDialog.dispose();

            }
          }, LangageManager.getProperty("miage.updatingfolder")).start();
          progressDialog.setVisible(true);
          progressDialog.dispose();             
        }
      });     
    }
    return jButtonDesindex;
  }
View Full Code Here

Examples of entagged.tageditor.ProgressDialog

   *
   * @return a progress dialog.
   */
  protected ProgressDialog getProgressDialog() {
    if (this.progressDialog == null) {
      this.progressDialog = new ProgressDialog(tagEditorFrame,
          "Progress", "Starting");
      this.progressDialog.setAbortable(true);
      this.progressDialog.setModal(true);
    }
    return this.progressDialog;
View Full Code Here

Examples of fr.soleil.lib.project.swing.dialog.ProgressDialog

            public boolean isCanceled() {
                return false;
            }
        };

        final ProgressDialog progressDialog = new ProgressDialog(testFrame);
        progressDialog.setProgressIndeterminate(true);
        progressDialog.setCancelable(killer);
        progressDialog.setTitle("Computing chart data");
        progressDialog.setMainMessage(progressDialog.getTitle());
        progressDialog.pack();
        progressDialog.setLocationRelativeTo(testFrame);
        progressDialog.setVisible(true);

        SwingWorker<Void, Void> chartFiller = new SwingWorker<Void, Void>() {
            @Override
            protected Void doInBackground() throws Exception {
                Map<String, Object> data = new LinkedHashMap<String, Object>();
                String tmpName = null;
                final NumberFormat format = NumberFormat.getInstance();
                format.setMinimumIntegerDigits(3);
                // Create 1500 dataview of 650 points
                for (int i = 0; i < 1500; i++) {
                    tmpName = "Curve-" + format.format(i);
                    double[] flatValues = new double[650];
                    for (int j = 0; j < flatValues.length / 2; j++) {
                        flatValues[2 * j] = 2 * j;
                        flatValues[2 * j + 1] = 2 * j + 1 + i;
                    }
                    data.put(tmpName, flatValues);
                }
                chartViewer.setData(data);
                return null;
            }

            @Override
            protected void done() {
                progressDialog.setVisible(false);
            }
        };
        chartFiller.execute();
    }
View Full Code Here

Examples of net.datacrow.console.windows.onlinesearch.ProgressDialog

        finished = b;
    }
   
    @Override
    public void run() {
        final ProgressDialog dlg = new ProgressDialog(title);
        while (!finished && thread.isAlive()) {
            SwingUtilities.invokeLater(
                    new Thread(new Runnable() {
                        @Override
                        public void run() {
                            dlg.update();                               
                        }
                    }));
           
            try { sleep(10); } catch (Exception ignore) {}
        }
       
        SwingUtilities.invokeLater(
            new Thread(new Runnable() {
                @Override
                public void run() {
                    dlg.close();
                }
            }));
       
        thread = null;
    }
View Full Code Here

Examples of net.sourceforge.processdash.ui.lib.ProgressDialog

            }
        }
    }

    public void exportInteractively(Vector filter, File dest) {
        ProgressDialog p = ProgressDialog.create(this, resource
                .getString("ExportExporting"), resource
                .getString("ExportExportingDataDots"));
        ExportMetricsFileInstruction instr = new ExportMetricsFileInstruction(
                dest.getAbsolutePath(), filter);
        p.addTask(ExportManager.getInstance().getExporter(instr));
        p.setCompletionMessage(resource.getString("ExportDone"));
        p.run();
    }
View Full Code Here

Examples of net.sourceforge.processdash.ui.lib.ProgressDialog

       
        // nothing to do?
        if (tasks.isEmpty())
            return;

        ProgressDialog p = null;
        if (window != null)
            p = ProgressDialog.create(window, resource
                    .getString("ExportAutoExporting"), resource
                    .getString("ExportExportingDataDots"));
       
        final ExportJanitor janitor = new ExportJanitor(data);
        janitor.startExportAllOperation();
        fireEvent(EXPORT_STARTING, EXPORT_ALL_PATH);
       
        for (Iterator iter = tasks.iterator(); iter.hasNext();) {
            AbstractInstruction instr = (AbstractInstruction) iter.next();
            Runnable exporter = getExporter(instr);
           
            if (instr.isEnabled()) {
                if (p != null)
                    p.addTask(exporter);
                else
                    exporter.run();
            }
        }

        if (p != null) {
            p.addTask(new Runnable() { public void run() {
                janitor.finishExportAllOperation(); }});
            p.run();

        } else {
            janitor.finishExportAllOperation();
        }
View Full Code Here

Examples of nodebox.ui.ProgressDialog

     * Shows the progress dialog.
     * <p/>
     * Called from the run() method (which is called in invokeLater).
     */
    private void showProgressDialog() {
        startupDialog = new ProgressDialog(null, "Starting " + NAME);
        startupDialog.setVisible(true);
    }
View Full Code Here

Examples of org.gjt.jclasslib.util.ProgressDialog

        btnOk = new JButton("Ok");
        btnOk.setEnabled(false);
        btnCancel = new JButton("Cancel");
        btnOk.setPreferredSize(btnCancel.getPreferredSize());

        progressDialog = new ProgressDialog(this, null, "Scanning classpath ...");

    }
View Full Code Here

Examples of org.jets3t.gui.ProgressDialog

                        (S3BucketLoggingStatus) loggingStatusMap.get(bucketName);
                    displayBucketLoggingStatus(loggingStatus);
                } else {
                    (new Thread() {
                        public void run() {
                            final ProgressDialog progressDialog =
                                new ProgressDialog(ownerFrame, "Bucket Logging", null);
                           
                            SwingUtilities.invokeLater(new Runnable() {
                                public void run() {
                                    progressDialog.startDialog("Retrieving bucket logging status",
                                        null, 0, 0, null, null);                              
                                }
                             });

                            try {
                                S3BucketLoggingStatus loggingStatus =
                                    s3Service.getBucketLoggingStatus(bucketName);                                   
                                loggingStatusMap.put(bucketName, loggingStatus);
                                displayBucketLoggingStatus(loggingStatus);
                            } catch (Exception e) {
                                SwingUtilities.invokeLater(new Runnable() {
                                    public void run() {
                                        progressDialog.stopDialog();                   
                                    }
                                 });

                                ErrorDialog.showDialog(ownerFrame, null,
                                    "Unable to retrieve bucket logging status for " + bucketName, e);
                            }
                            SwingUtilities.invokeLater(new Runnable() {
                                public void run() {
                                    progressDialog.stopDialog();                   
                                }
                             });
                        }
                    }).start();
                }                                                           
            }
        } else if (event.getSource().equals(loggedToBucketComboBox)) {
            if (!loggedToBucketComboBox.isEnabled()) {
                // Ignore this event, it is internally generated.
                return;
            }

            final String loggedBucketName = (String) loggedBucketComboBox.getSelectedItem();
            final String[] loggedToBucketName = new String[1];
            final String[] loggingFilePrefix = new String[1];
           
            if (loggedToBucketComboBox.getSelectedIndex() == 0) {
                // Logging is being disabled, leave values as null.
            } else {
                if (prefixTextField.getText().length() == 0) {
                    ErrorDialog.showDialog(ownerFrame, null,
                        "A log file name prefix must be provided to log buckets", null);
                    loggedToBucketComboBox.setSelectedIndex(0);
                    return;
                }
               
                loggedToBucketName[0] = (String) loggedToBucketComboBox.getSelectedItem();
                loggingFilePrefix[0] = prefixTextField.getText();
            }
           
            (new Thread(new Runnable() {
                public void run() {
                    final ProgressDialog progressDialog =
                        new ProgressDialog(ownerFrame, "Bucket Logging", null);
                    SwingUtilities.invokeLater(new Runnable() {
                        public void run() {
                            progressDialog.startDialog("Setting bucket logging status",
                                null, 0, 0, null, null);
                        }
                     });
                   
                    try {
                        S3BucketLoggingStatus loggingStatus =
                            new S3BucketLoggingStatus(loggedToBucketName[0], loggingFilePrefix[0]);
                        s3Service.setBucketLoggingStatus(loggedBucketName, loggingStatus, true);
                       
                        loggingStatusMap.put(loggedBucketName, loggingStatus);
                    } catch (Exception e) {
                        SwingUtilities.invokeLater(new Runnable() {
                            public void run() {
                                progressDialog.stopDialog();
                            }
                         });
                        ErrorDialog.showDialog(ownerFrame, null,
                            "Unable to set bucket logging status for " + loggedBucketName, e);
                    }                   
                    SwingUtilities.invokeLater(new Runnable() {
                        public void run() {
                            progressDialog.stopDialog();
                        }
                     });                   
                };
            })).start();           
        }  
View Full Code Here

Examples of org.jets3t.gui.ProgressDialog

    private void startProgressDialog(final String statusMessage, final String detailsText,
        final int minTaskValue, final int maxTaskValue, final String cancelButtonText,
        final CancelEventTrigger cancelEventListener)
    {
        if (this.progressDialog == null) {
            this.progressDialog = new ProgressDialog(this.ownerFrame, "Please wait...", null);
        }
       
        this.getContentPane().setCursor(new Cursor(Cursor.WAIT_CURSOR));
       
        SwingUtilities.invokeLater(new Runnable() {
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.