<Swing Dev> RFR: 8041701 Nimbus JTree renderer properties persist across L&F changes
Sergey Bylokhov
Sergey.Bylokhov at oracle.com
Sat Jul 11 06:11:12 UTC 2020
Hi, Tejpal.
The fix looks fine, could you please update the test to check that all installed L&F work the same way.
On 09.07.2020 04:24, Tejpal Rebari wrote:
> Hi All,
> Please review the following fix for jdk16.
>
> Bug : https://bugs.openjdk.java.net/browse/JDK-8041701
> Webrev : http://cr.openjdk.java.net/~trebari/swing/8041701/webrev00/
>
> Issue : UI properties “Tree.leafIcon”, “Tree.closedIcon”, “Tree.openIcon”,
> “Tree.selectionForeground” ..etc are supposed to be instances of UIResource
> if they are defined by LAF.
>
> In Nimbus LAF all the above properties are defined , but none of them implement
> UIResource, this causes them to persists when LAF is changed.
>
> Fix : Fix is to make NimbusLookAndFeel classes instance of UIResource,
> which uses above mentioned UI Properties.
>
> Test : Added an automated test.
> Tested on all the three platforms. Mach5 link is in JBS.
>
>
> Regards
> Tejpal
--
Best regards, Sergey.
More information about the swing-dev
mailing list