<Swing Dev> RFR: 8041701 Nimbus JTree renderer properties persist across L&F changes
Tejpal Rebari
tejpal.rebari at oracle.com
Thu Jul 9 11:24:19 UTC 2020
Hi All,
Please review the following fix for jdk16.
Bug : https://bugs.openjdk.java.net/browse/JDK-8041701 <https://bugs.openjdk.java.net/browse/JDK-8041701>
Webrev : http://cr.openjdk.java.net/~trebari/swing/8041701/webrev00/ <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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/swing-dev/attachments/20200709/b9a39fcd/attachment-0001.htm>
More information about the swing-dev
mailing list