Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8013361

JProgressBar doesn't animate on Mac OS X

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 7u4
    • client-libs

      FULL PRODUCT VERSION :
      java version " 1.7.0_09 "
      Java(TM) SE Runtime Environment (build 1.7.0_09-b05)
      Java HotSpot(TM) 64-Bit Server VM (build 23.5-b02, mixed mode)



      ADDITIONAL OS VERSION INFORMATION :
       Darwin Kernel Version 12.2.0: Sat Aug 25 00:48:52 PDT 2012; root:xnu-2050.18.24~1/RELEASE_X86_64 x86_64

      Mac OS X 10.8.2

      A DESCRIPTION OF THE PROBLEM :
      The Swing JProgressBar on OS X does not animate.

      Neither the indeterminate progress bar, nor the determinate one show any animated sign of progress.



      REGRESSION. Last worked in version 6u31


      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      import javax.swing.*;

      public class ScratchSpace {


          public static void main(String[] args) {
              SwingUtilities.invokeLater(new Runnable() {
                  @Override
                  public void run() {
                      JFrame frame = new JFrame( " JProgressBar Test " );
                      JPanel panel = new JPanel();

                      final JProgressBar progressBar1 = new JProgressBar();
                      progressBar1.setIndeterminate(true);
                      panel.add(progressBar1);

                      final JProgressBar progressBar2 = new JProgressBar(0, 100);
                      progressBar2.setValue(50);
                      panel.add(progressBar2);

                      frame.setContentPane(panel);
                      frame.pack();
                      frame.setLocationRelativeTo(null);
                      frame.setVisible(true);
                  }
              });
          }

      }

      ---------- END SOURCE ----------

            serb Sergey Bylokhov
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: