JDK-7168926 : [macosx] JProgressBar indeterminate mode animation frozen
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 7
  • Priority: P3
  • Status: Resolved
  • Resolution: Duplicate
  • OS: os_x
  • CPU: x86
  • Submitted: 2012-05-15
  • Updated: 2013-01-14
  • Resolved: 2013-01-14
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 8
8Resolved
Related Reports
Duplicate :  
Description
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 ----------

Comments
This is duplicate of the issue JDK-7124525 [macosx] No animation on certain Swing components in Aqua LaF
14-01-2013