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

Alexander Potochkin alexander.potochkin at oracle.com
Thu Oct 29 14:35:35 UTC 2015


Hello Semyon

The fix looks good.

Thanks
alexp

On 9/8/2015 23:57, Semyon Sadetsky wrote:
> 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/20151029/1212896f/attachment.html>


More information about the swing-dev mailing list