<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
Sergey Bylokhov
Sergey.Bylokhov at oracle.com
Mon Apr 27 04:51:58 UTC 2020
Looks fine.
On 4/24/20 5:44 am, Prasanta Sadhukhan wrote:
> 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
>
>
--
Best regards, Sergey.
More information about the swing-dev
mailing list