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

Semyon Sadetsky semyon.sadetsky at oracle.com
Mon Mar 16 10:23:26 UTC 2015


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