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

Alexander Scherbatiy alexandr.scherbatiy at oracle.com
Wed Mar 25 13:05:41 UTC 2015


   The fix looks good to me.

   Thanks,
   Alexandr.

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.
>
> Thanks,
> --Semyon




More information about the swing-dev mailing list