我在多屏幕上有关于java swing的问题。在JDK 1.6上,它可以在双屏幕上正常工作。但是在JDK 1.7上,它有一个问题: 线程中的异常" AWT-EventQueue-0" java.lang.IllegalArgumentException:
null
代码:这里错误:
adding a container to a container on a different GraphicsDevice
at java.awt.Component.checkGD(Component.java:1182)
at java.awt.Container.checkGD(Container.java:1165)
at java.awt.Container.checkGD(Container.java:1165)
at java.awt.Container.checkGD(Container.java:1165)
at java.awt.Container.checkGD(Container.java:1165)
at java.awt.Container.checkGD(Container.java:1165)
at java.awt.Container.checkGD(Container.java:1165)
at java.awt.Container.checkGD(Container.java:1165)
at java.awt.Container.addImpl(Container.java:1086)
at javax.swing.JSplitPane.addImpl(JSplitPane.java:1032)
at java.awt.Container.add(Container.java:410)
和javax.swing.JplitPane中的Graphic是错误
frameQuickPreiview.addWindowListener(new WindowAdapter() {
@Override
public void windowClosing(WindowEvent e) {
closeQuickPreview(false);
}
});
你能解释一下如何有所不同吗?