<Swing Dev> [9] Review Request for 8134828: Scrollbar thumb disappears with Nimbus L&F

Semyon Sadetsky semyon.sadetsky at oracle.com
Tue Sep 8 20:57:22 UTC 2015


Hello,

Please review fix for JDK9:
bug: https://bugs.openjdk.java.net/browse/JDK-8134828
webrev: http://cr.openjdk.java.net/~ssadetsky/8134828/webrev.00/

This is a regression from the 8041642 which introduced a protection from 
shrinking of the painter image less then it stretching inset when 
9-square algorithm is applied to it. But the scroll bar has minimum 
thumb size 29px while its stretching inset is 30px and it allows painter 
image to be shrunk from 30px to 29px. So the painter image shrinking is 
determined by the component type.
As a solution the 8041642 fix was reworked to disable shrinking for the 
progress bar component only. To regulate this the new properties were 
introduced in the Nimbus default style: minBarSize and glowWidth. The 
last one fix yet another issue with the progress bar in Nimbus: the bar 
foreground alignment ignored the transparent glow in the painter image 
for the inverted progress bar direction.

--Semyon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/swing-dev/attachments/20150908/734dcdcd/attachment.html>


More information about the swing-dev mailing list