Package javax.swing

Examples of javax.swing.JProgressBar$AccessibleJProgressBar


        contentPane = new JPanel();
        contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
        setContentPane(contentPane);
        contentPane.setLayout(null);

        progressBar = new JProgressBar();
        progressBar.setBounds(10, 63, 278, 22);
        contentPane.add(progressBar);

        JLabel lblDownloadingTexture = new JLabel("<html><body><center>Downloading texture pack...<br/>Please Wait</center></body></html>");
        lblDownloadingTexture.setHorizontalAlignment(SwingConstants.CENTER);
View Full Code Here


        contentPane = new JPanel();
        contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
        setContentPane(contentPane);
        contentPane.setLayout(null);

        progressBar = new JProgressBar();
        progressBar.setBounds(10, 63, 278, 22);
        contentPane.add(progressBar);

        JLabel lblDownloadingModPack = new JLabel("<html><body><center>Downloading mod pack...<br/>Please Wait</center></body></html>");
        lblDownloadingModPack.setHorizontalAlignment(SwingConstants.CENTER);
View Full Code Here

    .contains("label='Menu'").contains("enabled=true").contains("visible=false").contains("showing=false");
  }

  @Test
  public void should_format_JProgressBar() {
    JProgressBar progressBar = progressBar().showingText().withMaximum(20).withMinimum(10).withName("progressBar")
        .withText("15%").withValue(15).createNew();
    assertThat(formatted(progressBar)).contains("javax.swing.JProgressBar").contains("name='progressBar'")
    .contains("value=15").contains("minimum=10").contains("maximum=20").contains("string='15%'")
    .contains("stringPainted=true").contains("enabled=true").contains("visible=true").contains("showing=false");
  }
View Full Code Here

  }

  @Test
  public void should_return_text_using_driver() {
    JProgressBarDriver driver = fixture.driver();
    JProgressBar target = fixture.target();
    when(driver.textOf(target)).thenReturn("Hello");
    assertThat(fixture.text()).isEqualTo("Hello");
    verify(driver).textOf(target);
  }
View Full Code Here

    @RunsInEDT
    public JProgressBar createNew() {
      return execute(new GuiQuery<JProgressBar>() {
        @Override
        protected JProgressBar executeInEDT() {
          JProgressBar progressBar = new JProgressBar();
          progressBar.setIndeterminate(indeterminate);
          progressBar.setMaximum(maximum);
          progressBar.setMinimum(minimum);
          progressBar.setName(name);
          progressBar.setString(text);
          progressBar.setStringPainted(showingText);
          progressBar.setValue(value);
          return progressBar;
        }
      });
    }
View Full Code Here

      gbc_chckbxRestoreMinecraftjarOnly.gridx = 0;
      gbc_chckbxRestoreMinecraftjarOnly.gridy = 2;
      contentPanel.add(chckbxRestoreMinecraftjarOnly, gbc_chckbxRestoreMinecraftjarOnly);
    }
    {
      progressBar = new JProgressBar();
      GridBagConstraints gbc_progressBar = new GridBagConstraints();
      gbc_progressBar.fill = GridBagConstraints.HORIZONTAL;
      gbc_progressBar.insets = new Insets(0, 0, 5, 0);
      gbc_progressBar.gridx = 0;
      gbc_progressBar.gridy = 3;
View Full Code Here

    waitDialog = new JDialog(ApplicationContext.getCurrentFrame(), "Please Wait");
    waitDialog.setDefaultCloseOperation(JDialog.DO_NOTHING_ON_CLOSE);
    waitDialog.setSize(new Dimension(350, 100));
    waitDialog.setLayout(new BorderLayout());
    waitDialogLabel = new JLabel();
    waitProgressBar = new JProgressBar();
    waitDialog.setModal(true);
    waitDialogLabel.setIcon(IconHelper.getInformationIcon());
    waitDialog.add(waitDialogLabel, BorderLayout.CENTER);
    waitDialog.add(waitProgressBar, BorderLayout.SOUTH);
  }
View Full Code Here

        final JButton searchButton = new JButton(GO);
        searchButton.setBorder(BorderFactory.createEmptyBorder());
        searchButton.setContentAreaFilled(false);
        searchButton.addActionListener(startNewSearch);

        progressBar = new JProgressBar();
        progressBar.setString("");
        progressBar.setStringPainted(true);
        progressBar.setBorder(BorderFactory.createLineBorder(AMAZON_SEARCH_DARK_BLUE, 2));

        final TreeCriteriaEditor treeCriteriaEditor = new TreeCriteriaEditor(TreeCriterion.ALL_CRITERIA);
View Full Code Here

   *
   */
  private void initComponents() {
    labelIcon = new JLabel();
    labelIcon.setIcon(IconEnum.ICON_UGLAND.getIcon());
    progressBar = new JProgressBar();
    Timer timer = new Timer(500, this);
    timer.start();
  }
View Full Code Here

 
  public LoadProgress(int t)
  {
    d= Toolkit.getDefaultToolkit().getScreenSize();
    taille = t;
    p      = new JProgressBar();
    p.setMaximum(t);
    panel = new JPanel();
    msg   = new JLabel();
    text  = new JLabel("Chargement de l'application ...");
   
View Full Code Here

TOP

Related Classes of javax.swing.JProgressBar$AccessibleJProgressBar

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.