Deprecated Class DefaultLookAndFeel

11 views
Skip to first unread message

Mark Bolduc

unread,
May 8, 2020, 10:28:43 AM5/8/20
to CodenameOne Discussions
If you are experiencing an issue please mention the full platform your issue applies to:
IDE: NetBeans/Eclipse/IDEA Netbeans 11
Desktop OS Windows 10 Pro
Simulator Latest
Device ALL

Hope all your families are safe from COVID-19 threat!

We are using ((DefaultLookAndFeel) UIManager.getInstance().getLookAndFeel()).setRadioButtonImages(radioFullImage, radioEmptyImage, radioFullImage, radioEmptyImage);
to set the theme behaviour on Radio Buttons.

Doc on this class indicates:
Deprecated. 
this class is still crucial for some features in Codename One. The deprecation is here to indicate our desire to reduce usage/reliance on this class.

Is there an alternate/prefered method to use?

Regards

Stay Safe!

Shai Almog

unread,
May 9, 2020, 2:58:24 AM5/9/20
to CodenameOne Discussions
Hi,
at this time this feature is only available via DefaultLookAndFeel. It isn't likely to move though so you can rely on it being here for a while.

Mark Bolduc

unread,
May 9, 2020, 9:16:55 AM5/9/20
to CodenameOne Discussions
Thanks.
Reply all
Reply to author
Forward
0 new messages