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

Anton V. Tarasov anton.tarasov at oracle.com
Mon Mar 16 14:20:51 UTC 2015


Hi Semyon,

Looks good to me.

Regards,
Anton.

On 16.03.2015 13:23, 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.
>
> Thanks,
> --Semyon




More information about the swing-dev mailing list