我想用wiimote的白板http://uweschmidt.org/projects/wiimote-whiteboard 在macos 11上。
但当我启动应用程序时:
java.awt.IllegalComponentStateException: The dialog is decorated
at java.desktop/java.awt.Dialog.setOpacity(Dialog.java:1302)
at java.desktop/sun.lwawt.macosx.CPlatformWindow$3.applyProperty(CPlatformWindow.java:198)
at java.desktop/sun.lwawt.macosx.CPlatformWindow$3.applyProperty(CPlatformWindow.java:197)
at java.desktop/com.apple.laf.ClientPropertyApplicator.applyProperty(ClientPropertyApplicator.java:46)
at java.desktop/com.apple.laf.ClientPropertyApplicator.attachAndApplyClientProperties(ClientPropertyApplicator.java:63)
at java.desktop/sun.lwawt.macosx.CPlatformWindow$14.propertyChange(CPlatformWindow.java:352)
at java.desktop/java.beans.PropertyChangeSupport.fire(PropertyChangeSupport.java:341)
at java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:334)
at java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:266)
at java.desktop/java.awt.Component.firePropertyChange(Component.java:8732)
at java.desktop/javax.swing.JComponent.addNotify(JComponent.java:4784)
at java.desktop/javax.swing.JRootPane.addNotify(JRootPane.java:729)
at java.desktop/java.awt.Container.addNotify(Container.java:2800)
at java.desktop/java.awt.Window.addNotify(Window.java:778)
at java.desktop/java.awt.Dialog.addNotify(Dialog.java:759)
at java.desktop/java.awt.Window.pack(Window.java:816)
at org.uweschmidt.wiimote.whiteboard.gui.LogWindow.<init>(LogWindow.java:104)
at org.uweschmidt.wiimote.whiteboard.WiimoteWhiteboard.startup(WiimoteWhiteboard.java:96)
at org.jdesktop.application.Application$1.run(Application.java:171)
at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:316)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:770)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:391)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:740)
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)
我试着从源代码编译:
Buildfile: /Users/fart/Downloads/WiimoteWhiteboard/build.xml
init:
compile:
[javac] /Users/fart/Downloads/WiimoteWhiteboard/build.xml:12: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
[javac] Compiling 40 source files to /Users/fart/Downloads/WiimoteWhiteboard/bin
[javac] /Users/fart/Downloads/WiimoteWhiteboard/src/javax/media/jai/PerspectiveTransform.java:66: warning: [dep-ann] deprecated item is not annotated with @Deprecated
[javac] public PerspectiveTransform(float m00, float m01, float m02,
[javac] JaiI18N.getString("PerspectiveTransform1"));
[javac] ^
[javac] symbol: variable JaiI18N
[javac] location: class PerspectiveTransform
[javac] Note: Some input files use or override a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
如果有人有解决办法,谢谢<3
暂无答案!
目前还没有任何答案,快来回答吧!