Package javax.swing

Examples of javax.swing.JProgressBar$ModelListener


    setPreferredSize(new Dimension(0, 18));

    mInfoLabel = new JLabel();
    mInfoLabel.setBorder(BorderFactory.createEtchedBorder());

    mProgressBar = new JProgressBar();
    mProgressBar.setPreferredSize(new Dimension(200, 10));
    mProgressBar.setBorder(BorderFactory.createEtchedBorder());

    add(mInfoLabel, BorderLayout.CENTER);
    add(mProgressBar, BorderLayout.EAST);
View Full Code Here


        final boolean scroll = !autoUpdate && !TvDataBase.getInstance().dataAvailable(Date.getCurrentDate())
        && getProgramTableModel().getDate() != null
        && getProgramTableModel().getDate().compareTo(Date.getCurrentDate()) == 0;

        JProgressBar progressBar = mStatusBar.getProgressBar();
        try {
          TvDataUpdater.getInstance().downloadTvData(daysToDownload, services,
              progressBar, mStatusBar.getLabel());
        } catch (Throwable t) {
          String msg = mLocalizer.msg("error.3", "An unexpected error occurred during update.");
View Full Code Here

   *
   * @return javax.swing.JProgressBar
   */
  private JProgressBar getWaitProgressBar() {
    if (waitProgressBar == null) {
      waitProgressBar = new JProgressBar();
      waitProgressBar.setIndeterminate(true);
    }
    return waitProgressBar;
  }
View Full Code Here

    content.setLayout(new BorderLayout());
    mLabel = new JLabel(msg);
    mLabel.setHorizontalAlignment(SwingConstants.CENTER);
    content.add(mLabel, BorderLayout.CENTER);

    mBar = new JProgressBar();
    mBar.setVisible(false);

    content.add(mBar, BorderLayout.SOUTH);

    mDialog.setSize(500, 70);
View Full Code Here

    messageCarrier = new JLabel(" "); //$NON-NLS-1$
    passCountMessage = new JLabel(" "); //$NON-NLS-1$
    rowCountMessage = new JLabel(" "); //$NON-NLS-1$
    pageCountMessage = new JLabel(" "); //$NON-NLS-1$
    progressBar = new JProgressBar(SwingConstants.HORIZONTAL, 0, 100);
    progressBar.setStringPainted(true);

    GridBagConstraints gbc = new GridBagConstraints();
    gbc.gridx = 0;
    gbc.gridy = 0;
View Full Code Here

    }

    private Component createProgressPanel() {
        progressPanel = new JPanel(new BorderLayout());
        progressLabel = new JLabel("Progress");
        progressBar = new JProgressBar();
        progressBar.setStringPainted(true);

        progressPanel.add(progressBar, BorderLayout.NORTH);
        progressPanel.add(progressLabel, BorderLayout.SOUTH);
View Full Code Here

    progressInfo.addProperty("value", "int", new Integer(0));
  };
 
  public ProgressBar(Widget parent, String name) throws GUIException {
    super(parent, name);
    progressBar = new JProgressBar();
    progressBar.setStringPainted(true);
  }
View Full Code Here

        add(new JLabel("     "), BorderLayout.EAST);
        add(new JLabel("     "), BorderLayout.WEST);
        add(new JLabel("      "), BorderLayout.NORTH);
        add(new JLabel("      "), BorderLayout.SOUTH);
        message = new JLabel("");
        jpb = new JProgressBar(0, 100);
        JPanel cpanel = new JPanel();
        cpanel.setLayout(new GridLayout(0, 1));
        cpanel.add(jpb);
        cpanel.add(message);
View Full Code Here

        GridBagConstraints c = new GridBagConstraints();

        setFont(new Font("Helvetica", Font.PLAIN, 9));
        setLayout(gridbag);

        progressBar = new JProgressBar();
        gridbag.setConstraints(progressBar, c);
        add(progressBar);
        progressBar.setVisible(false);

        JPanel infoLinePanel = new JPanel();
View Full Code Here

      {
        JPanel panel = new JPanel(new BorderLayout());
        contentPane.add(panel, "progress");
        panel.add(new JLabel("Connecting to " + host + "..."));
        {
          panel.add(progressBar = new JProgressBar(), BorderLayout.SOUTH);
          progressBar.setIndeterminate(true);
        }
      }
      {
        JPanel panel = new JPanel(new BorderLayout());
View Full Code Here

TOP

Related Classes of javax.swing.JProgressBar$ModelListener

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.