Package javax.swing

Examples of javax.swing.ProgressMonitor$ProgressOptionPane


        }
      }
    }

    // Create the progress monitor
    ProgressMonitor monitor = new ProgressMonitor(frame,
        Strings.get("exportImageProgress"),
        null,
        0, 10000);
    monitor.setMillisToDecideToPopup(100);
    monitor.setMillisToPopup(200);
    monitor.setProgress(0);

    // And start a thread to actually perform the operation
    // (This is run in a thread so that Swing will update the
    // monitor.)
    new ExportThread(frame, frame.getCanvas(), dest, filter,
View Full Code Here


    clusterMapGui = new ClusterMapUI();
    mediator = clusterMapGui.getMediator();
    registerDoubleClickListener(mediator);
    add(clusterMapGui);
 
    progressMonitor = new ProgressMonitor(this.getRootPane(),"Building Clustermap","",0,3);
    progressMonitor.setMillisToPopup(0);
    progressMonitor.setMillisToDecideToPopup(0);
    progressMonitor.setNote("Fetching data... Please wait...");
    progressMonitor.setProgress(1);
   
View Full Code Here

    {
      public void run()
      {
        final JFrame frame = controller.getMainFrame();
        progressMonitor =
          new ProgressMonitor(frame, i18n.DOWNLOADING_UPDATES_MSG, i18n.DOWNLOADING_UPDATES_MSG, 0,
            totalFiles);
        setProgress(0);
      }
    });
  }
View Full Code Here

    private void startProgressMonitor(final int max) {
        final String title = language.getString("IdentitiesBrowser.progressDialog.title");
        final String msg = language.getString("IdentitiesBrowser.progressDialog.body");
        UIManager.put("ProgressMonitor.progressText", title);
        progressMonitor = new ProgressMonitor(parent, msg, null, 0, max);
//        progressMonitor.setNote(0+"/"+max);
    }
View Full Code Here

                        HostDescriptionDialog hostDescriptionDialog = new HostDescriptionDialog(engine.getConfiguration().getAiravataAPI(), null);
                        hostDescriptionDialog.setLocationRelativeTo(getContentPane());
                        hostDescriptionDialog.open();

                        if (hostDescriptionDialog.isHostCreated()) {
                          ProgressMonitor progressMonitor = new ProgressMonitor(getContentPane(), "Host Descriptions", "Refreshing host list..", 0, 200);
                          int progress=1;
                          progressMonitor.setProgress(progress++);
                          while(cmbHostName.getSelectedIndex()==-1 || !cmbHostName.getSelectedItem().toString().equals(hostDescriptionDialog.getHostLocation())){
                              loadHostDescriptions();
                              cmbHostName.setSelectedItem(hostDescriptionDialog.getHostLocation());
                              progressMonitor.setProgress(progress++);
                              Thread.sleep(50);
                          }
                          progressMonitor.setProgress(200);
                        }
                    } catch (Exception e1) {
                        e1.printStackTrace();
                        JOptionPane.showMessageDialog(null, e1.getLocalizedMessage());
                    }
View Full Code Here

                        HostDescriptionDialog hostDescriptionDialog = new HostDescriptionDialog(getRegistry(), null);
                        hostDescriptionDialog.setLocationRelativeTo(getContentPane());
                        hostDescriptionDialog.open();

                        if (hostDescriptionDialog.isHostCreated()) {
                          ProgressMonitor progressMonitor = new ProgressMonitor(getContentPane(), "Host Descriptions", "Refreshing host list..", 0, 200);
                          int progress=1;
                          progressMonitor.setProgress(progress++);
                          while(cmbHostName.getSelectedIndex()==-1 || !cmbHostName.getSelectedItem().toString().equals(hostDescriptionDialog.getHostLocation())){
                              loadHostDescriptions();
                              cmbHostName.setSelectedItem(hostDescriptionDialog.getHostLocation());
                              progressMonitor.setProgress(progress++);
                              Thread.sleep(50);
                          }
                          progressMonitor.setProgress(200);
                        }
                    } catch (Exception e1) {
                        e1.printStackTrace();
                        JOptionPane.showMessageDialog(null, e1.getLocalizedMessage());
                    }
View Full Code Here

    }

    @Override
    public InputStream getProgressMonitorInputStream(InputStream in, int length, String msg) {
        ProgressMonitorInputStream pmin = new ProgressMonitorInputStream(parent, msg, in);
        ProgressMonitor pm = pmin.getProgressMonitor();

        if (length > 0) {
            pm.setMaximum(length);
        }
        return pmin;
    }
View Full Code Here

      // show progress Monitor
      String progressMsg = "  Processing " + collectionReader.getNumberOfDocuments()
              + " Documents.";

      numDocs = collectionReader.getNumberOfDocuments();
      progressMonitor = new ProgressMonitor(DocumentAnalyzer.this, progressMsg, "", 0, numDocs + 2);
      String initial = "Initializing.... Please wait ";
      progressMonitor.setNote(initial);
      progressMonitor.setMillisToPopup(-1);
      progressMonitor.setMillisToDecideToPopup(-1);
      numDocsProcessed = 0;
View Full Code Here

    progressBar.setStringPainted(true);
  }

  public void progressMonitor(String msg, int max, SwingWorker task) {
    this.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
    progressMonitor = new ProgressMonitor(XFrame.frame.xtabbedEditorPanel.getSelectedComponent(), msg, "", 0, max);
    progressMonitor.setMillisToDecideToPopup(100);
    XFrame.frame.setEnabled(false);
    task.execute();
  }
View Full Code Here

      }
    }

    if (isRunning()) {
      final StringBuffer message = new StringBuffer();
      monitor = new ProgressMonitor(HermesBrowser.getBrowser(), "Deleting " + messageIds.size() + ((messageIds.size() == 1) ? " message" : " messages")
          + " from " + dConfig.getName(), "Connecting...", 0, messageIds.size()) {

      };

      monitor.setMillisToDecideToPopup(50);
View Full Code Here

TOP

Related Classes of javax.swing.ProgressMonitor$ProgressOptionPane

Copyright © 2018 www.massapicom. 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.