Package javax.swing

Examples of javax.swing.ProgressMonitor$ProgressOptionPane


                        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


                        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

                        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

                        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

      // 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

        this.outgoingfiletransfer = outgoingfiletransfer;
        UIManager.put("ProgressMonitor.progressText", "Datei-Senden");
        UIManager.put("OptionPane.cancelButtonText", "Abbruch senden");

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        pm = new ProgressMonitor(chatwindow, "","", 0, intMax);

        timer = new Timer(500, this);
        timer.start();
  }
View Full Code Here

        this.incomingfiletransfer = incomingfiletransfer;
        UIManager.put("ProgressMonitor.progressText", "Datei-Empfangen");
        UIManager.put("OptionPane.cancelButtonText", " Abbruch");

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        pm = new ProgressMonitor(mainwindow, "","", 0, intMax);

        timer = new Timer(500, this);
        timer.start();

   }
View Full Code Here

  }
 
  private void indexDirectory(File dir) throws IOException
  {
    File[] files = dir.listFiles();
    ProgressMonitor progress = new ProgressMonitor(null,I18N.gettext("Indexing log files"),"", 0, files.length);
    for (int i=0; i < files.length; i++)
      {
      if(progress.isCanceled()) break;
      File f = files[i];
          if (f.getName().endsWith(".txt"))
          {
            progress.setNote(f.getName());
            progress.setProgress(i);
            parseLog(f);
          }
      }
    progress.close();
  }
View Full Code Here

  }

  @Override
  public Object construct() {

    ProgressMonitor pm = new ProgressMonitor(own, msg, "", 0, max);

    pm.setMillisToDecideToPopup(0);
    pm.setMillisToPopup(0);
    pm.setProgress(0);

    return pm;
  }
View Full Code Here

  private int step;

  public ProgressMonitorShow(Component container, String msg, int step) {
    super();
    this.step = step;
    pm = new ProgressMonitor(container, msg, "<HTML>-<p>-</HTML>", 0, 0);
  }
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.