I am running a very simple program: JFrame frame = new JFrame(); frame.setSize(200, 200);
try { SwingEngine engine = new SwingEngine(); engine.render(MainFrame.class.getResource("test.xml")); } catch (Exception e) { e.printStackTrace(); System.exit(-1); } frame.setVisible(true); The "test.xml" file only has the following three lines:
<?xml version="1.0" encoding="UTF-8"?> <panel> </panel> When I run the program on windows, I can quit the program using "Alt-F4". However, on OS X, "Apple-Q" does not cause the program to quit. I noticed if I comment out the line: "engine.render(MainFrame.class.getResource("test.xml"));", the program is able to quit using "Apple Q". Anybody know why this is happening? What does engine.render() do that causes it to not be able to quit? Thanks in advance, Andrew |
_______________________________________________ Forum mailing list Forum@carlsbadcubes.com http://carlsbadcubes.com/mailman/listinfo/forum_carlsbadcubes.com