<Swing Dev> RFR JDK-8172269: When checking the default behaviour for a scroll tab layout and checking the 'opaque' checkbox, the area behind tabs is not red

Prasanta Sadhukhan prasanta.sadhukhan at oracle.com
Fri Apr 24 12:44:49 UTC 2020


Hi All,

Please review a fix for an issue where it is seen that the JTabbedPane 
background for SCROLL_TAB_LAYOUT policy is not same as what is set by user.

This is in continuation with the fix done inJDK-8007563 and 
<https://bugs.openjdk.java.net/browse/JDK-8007563>JDK-8078269
<https://bugs.openjdk.java.net/browse/JDK-8078269>where the fix was done 
for WRAP_TAB_LAYOUT policy.

There, the fix checks if the "TabbedPane.tabAreaBackground" property set 
by OceanTheme or other L&Fs would be used only if the background color 
is "UIResource" otherwise the backgroundcolor which was set by the user 
should be used. The same check is now applied to SCROLL_TAB_LAYOUT 
policy too to have consistent behaviour.

Bug: https://bugs.openjdk.java.net/browse/JDK-8172269

webrev: http://cr.openjdk.java.net/~psadhukhan/8172269/webrev.0/

Regards

Prasanta


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/swing-dev/attachments/20200424/e7c15dcb/attachment.htm>


More information about the swing-dev mailing list