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