NullPointerException when switch back dynamically to WindowsLookAndFeel #26
Comments
That class has external dependencies, so I just explicitly registered a couple of Substance look and feel classes:
I'm not seeing any exceptions thrown under the latest stable 7.0.01 release of Substance. I'll need more info:
|
Versions :
Stacktrace : How to reproduce :
|
No idea what is Substance 7.3 from Maven. At some point Substance was forked into Insubstantial where the development continued without my involvement. I also don't publish binaries to Maven. Unless this is happening with the latest official Substance release 7.0.01 that you can find in the /drop folder in here, there's nothing for me to fix. |
Sorry, its now happening with the latest official Substance release 7.0.01 !! How to reproduce :
Edit : from StackTrace, the NullPointerException occured at line 1949 in The (w) is null (not a Frame nor a Dialog). |
ChangeLookAndFeelAction.run calls defaults.resetComponents() in between UIManager.setLookAndFeel and SwingUtilities.updateComponentTreeUI. That means that while a new look and feel has been set, the existing UI components have not been properly updated to use UI delegates from that look and feel. Substance UI delegates can not be used under a non-Substance look-and-feel. Switch the order like this:
and the crash is gone |
Hi;
When switch my application L&F dynamically from Metal, Nimbus or Windows to Substance LookAndFeel, it works fine with no problem.
When switch back from Substance LookAndFeel to Metal, Nimbus or Windows , the NullPointerException was occurred with the message :
Failed loading L&F: com.sun.java.swing.plaf.windows.WindowsLookAndFeel
For TEST purpose, i just updated UIManager Defaults to use all skinned Substance LookAndFeel.
Thanks in advance.
The text was updated successfully, but these errors were encountered: