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

[macosx] JProgressBar indeterminate mode animation frozen

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • 8
    • 7
    • client-libs

      FULL PRODUCT VERSION :
      Java(TM) SE Runtime Environment (build 1.7.0_06-ea-b09)

      ADDITIONAL OS VERSION INFORMATION :
      Mac OS X 10.7.3

      A DESCRIPTION OF THE PROBLEM :
      For the JProgressBar, there is no animation displayed when setting indeterminate to true. This is 100% consistent, and the animation displays as expected in JDK6 using the same code.

      I initially upgraded from JDK6 to the 7u4 release and discovered the bug. I then installed the snapshot release 7u6(b09) and the issue remains.

      REGRESSION. Last worked in version 6u31

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      package progressbartest;

      import javax.swing.BoxLayout;
      import javax.swing.JFrame;
      import javax.swing.JPanel;
      import javax.swing.JProgressBar;

      public class ProgressBarTest {

          public static void main(String[] args) {
              JFrame mainWindow = new JFrame("Progress Bar Test");
              mainWindow.setSize(480, 320);
              
              JPanel mainPanel = new JPanel();
              mainPanel.setLayout(new BoxLayout(mainPanel, BoxLayout.PAGE_AXIS));
              
              JProgressBar progressBar = new JProgressBar();
              progressBar.setIndeterminate(true);
              progressBar.setString("");
              
              mainPanel.add(progressBar);
              mainWindow.add(mainPanel);
              mainWindow.setVisible(true);
          }
      }


      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      package progressbartest;

      import javax.swing.BoxLayout;
      import javax.swing.JFrame;
      import javax.swing.JPanel;
      import javax.swing.JProgressBar;

      public class ProgressBarTest {

          public static void main(String[] args) {
              JFrame mainWindow = new JFrame("Progress Bar Test");
              mainWindow.setSize(480, 320);
              
              JPanel mainPanel = new JPanel();
              mainPanel.setLayout(new BoxLayout(mainPanel, BoxLayout.PAGE_AXIS));
              
              JProgressBar progressBar = new JProgressBar();
              progressBar.setIndeterminate(true);
              progressBar.setString("");
              
              mainPanel.add(progressBar);
              mainWindow.add(mainPanel);
              mainWindow.setVisible(true);
          }
      }
      ---------- END SOURCE ----------

            alexsch Alexandr Scherbatiy
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: