search for: exit_on_close

Displaying 2 results from an estimated 2 matches for "exit_on_close".

2002 Dec 30
1
Java Swing App
...public class HelloWorldSwing { public static void main(String[] args) { JFrame frame = new JFrame("HelloWorldSwing"); final JLabel label = new JLabel("Hello World"); frame.getContentPane().add(label); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.pack(); frame.setVisible(true); } } I'm running RedHat-7.3, with all the latest updates, Gnome-2, and a 2.4.20 kernel. I'm using a recent CVS of wine, Dec 23, I think, compiled with OpenGL support. Any suggestions of how to make this work, or how to diagnose i...
2012 Dec 22
0
[LLVMdev] Problem executing Swing application with j3
...blic class HelloSwing { > public static void main(String[] args) { > JFrame frame = new JFrame("HelloWorldSwing"); > final JLabel label = new JLabel("Hello World"); > frame.getContentPane().add(label); > > frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); > frame.pack(); > frame.setVisible(true); > } > } > > I'm running j3 on a 32 bit machine, with an x86 OpenSuse 12.2 System. > Other informations required ? > > I have this information with j3 -version : > J3 for Java 1.1 -- 1.5 > > Maybe the previ...