-
Notifications
You must be signed in to change notification settings - Fork 42
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
When running my Java Swing application with Darkula on Windows on Java 17, I get an exception:
java.lang.IllegalAccessError: class com.github.weisj.darklaf.compatibility.SwingUtil (in unnamed module @0x562aec8) cannot access class sun.awt.SunToolkit (in module java.desktop) because module java.desktop does not export sun.awt to unnamed module @0x562aec8 at com.github.weisj.darklaf.compatibility.SwingUtil.grab(SwingUtil.java:109) at
com.github.weisj.darklaf.ui.popupmenu.MouseGrabber.grabWindow(MouseGrabber.java:74) at
com.github.weisj.darklaf.ui.popupmenu.MouseGrabber.stateChanged(MouseGrabber.java:112) at
java.desktop/javax.swing.MenuSelectionManager.fireStateChanged(MenuSelectionManager.java:211) at
java.desktop/javax.swing.MenuSelectionManager.setSelectedPath(MenuSelectionManager.java:138) at
java.desktop/javax.swing.plaf.basic.BasicMenuUI$Handler.mousePressed(BasicMenuUI.java:519) at
com.github.weisj.darklaf.delegate.MouseInputDelegate.mousePressed(MouseInputDelegate.java:81) at
com.github.weisj.darklaf.ui.menu.DarkMenuUI$1.mousePressed(DarkMenuUI.java:83) at
java.desktop/java.awt.Component.processMouseEvent(Component.java:6623) at
java.desktop/javax.swing.JComponent.processMouseEvent(JComponent.java:3389) at
java.desktop/java.awt.Component.processEvent(Component.java:6391) at
java.desktop/java.awt.Container.processEvent(Container.java:2266) at
java.desktop/java.awt.Component.dispatchEventImpl(Component.java:5001) at
java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2324) at
java.desktop/java.awt.Component.dispatchEvent(Component.java:4833) at
java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4948) at
java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Container.java:4572) at
java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Container.java:4516) at
java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2310) at
java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2780) at
java.desktop/java.awt.Component.dispatchEvent(Component.java:4833) at
java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:773) at
java.desktop/java.awt.EventQueue$4.run(EventQueue.java:722) at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:716)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:399) at
java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86) at
java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:97) at
java.desktop/java.awt.EventQueue$5.run(EventQueue.java:746) at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:744)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:399) at
java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86) at
java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:743) at
java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203) at
java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124) at
java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113) at
java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109) at
java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) at
java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
To Reproduce
Sorry, hard to say, the code is really embedded in my application... But I just installed the LAF with LafManager.install(new DarculaTheme());.
Screenshots
Additional Information:
- OS: Windows
- OS Version: 11 Pro Insider Preview (23430.1000)
- For issues with frame decorations on Windows please provide the explicit Windows build number.
- Darklaf Version: 3.0.2
- Note: If you are using the
latest.integrationversion please try to replicate the issue with the latest stable release.
- Note: If you are using the
Additional context
Works fine on my macOS machine (also Java 17).
Running Windows on Parallels Desktop on my MacBook Pro M1.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working