JDK-6601399 : Nimbus L&F: Indeterminate ProgressBar should be tiled
Type:Bug
Component:client-libs
Sub-Component:javax.swing
Affected Version:6u5
Priority:P2
Status:Resolved
Resolution:Fixed
OS:generic
CPU:generic
Submitted:2007-09-06
Updated:2011-02-16
Resolved:2007-09-18
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.
The indeterminate progress bar has a bouncing box, rather than tiling.
Comments
EVALUATION
Part of the fix required adding logic to SynthProgressBarUI for dealing with tiles, and using those tiles to paint the indeterminate state. This was pretty straightforward. The difficult part was that in Nimbus we specify different "padding" based on whether the bar is determinate or indeterminate. SynthProgressBarUI doesn't really support this, unless you return a different SynthStyle instance. I removed an if check to cause the style to be reread anyway, even if it is the "same" as the previous style. I also changed the property change notification handler to update the style if the indeterminate progress changes.
06-09-2007
EVALUATION
The code for indeterminate progress bars being able to be tiled was in the code we had prior to committing nimbus initially, but I forgot to commit it in all the hustle. Adding the implementation now.