-
Notifications
You must be signed in to change notification settings - Fork 235
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crash when using UIManager.setLookAndFeel #621
Comments
Can be fixed by this code before initialization: UIManagers.initialize(); public class Main {
public static void main(String[] args) {
SwingUtilities.invokeLater(() -> {
try {
UIManagers.initialize();
UIManager.setLookAndFeel("com.alee.laf.WebLookAndFeel");
} catch (Exception e) {
e.printStackTrace();
}
});
}
} (Not a solution, just my observation) |
And so it seems to me that the problem is that |
It also works with just |
That is really weird indeed... |
I've pushed a fix for this and new JUnit test for both initialization options. |
This is the simplest way to reproduce this:
It crashes (version 1.2.12) with
The same crash is observed when using
UIManager.setLookAndFeel("com.alee.laf.WebLookAndFeel")
or-Dswing.defaultlaf=com.alee.laf.WebLookAndFeel
VM parameterThe text was updated successfully, but these errors were encountered: