When I create a JFrame, I am unable to interact with it. I can't resize it or click the title buttons, although I am able to move the window. Even something as simplistic as:
JFrame win = new JFrame();
win.setVisible(true);
will exhibit the problem. This is displayed in the console when the application is started:
2015-03-17 10:06:47.261 java[1406:507] [Java CocoaComponent compatibility mode]: Enabled
2015-03-17 10:06:47.261 java[1406:507] [Java CocoaComponent compatibility mode]: Setting timeout for SWT to 0.100000
Apparently this can happen when mixing Swing and SWT components. I don't use the SWT library, although my project does use JFreeChart, which contains swtgraphics2d.jar
. Is there any way to fix this while still using JFreeChart?
The problem went away when I removed the (now known to be) unnecessary jars, including swtgraphics2d.jar
.