<Swing Dev> [9] Review Request for 8041642: Incorrect paint of JProgressBar in Nimbus LF

Alexander Scherbatiy alexandr.scherbatiy at oracle.com
Tue Mar 17 15:00:05 UTC 2015


On 3/16/2015 1:23 PM, Semyon Sadetsky wrote:
> Hello,
>
> please review JDK9 fix:
> webrev: 
> http://cr.openjdk.java.net/~alexsch/semyon-sadetsky/8041642/webrev.00/
> bug: https://bugs.openjdk.java.net/browse/JDK-8041642
>
> Nimbus uses hard-coded images of 27x19 size for progress bar which is 
> stretched using 9-squares caching algorithm.
> The image fixed insets are set to (5,5,5,5) so when width of the 
> progress bar value is less then 10 pixels the image cannot be 
> stretched correctly and garbage is painted.
> Fix solution: do not paint values less then summarized insets width 
> along the bar direction. The same approach is used in the System LnF.

    It seems that for the small progress bar values (1, 2, 3, 4, 5, 6) 
in the test the progress is not shown after the fix.
    Is it possible to draw something correctly for these small values?

   Thanks,
   Alexandr.

>
> Thanks,
> --Semyon




More information about the swing-dev mailing list