Hi,
this small patch changes the demo in a way that the VM is shut down
when the main JFrame is closed.

2006-03-17  Robert Schuster  <[EMAIL PROTECTED]>

        * examples/gnu/classpath/examples/swing/Demo.java:
        (Demo): Set default closing operation to shutdown the runtime.

cya
Robert
Index: examples/gnu/classpath/examples/swing/Demo.java
===================================================================
RCS file: /cvsroot/classpath/classpath/examples/gnu/classpath/examples/swing/Demo.java,v
retrieving revision 1.39
diff -u -r1.39 Demo.java
--- examples/gnu/classpath/examples/swing/Demo.java	16 Mar 2006 12:01:31 -0000	1.39
+++ examples/gnu/classpath/examples/swing/Demo.java	17 Mar 2006 16:08:12 -0000
@@ -324,6 +324,7 @@
   public Demo()
   {
     frame = new JFrame("Swing Activity Board");
+    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
     frame.setJMenuBar(mkMenuBar());
     JComponent component = (JComponent) frame.getContentPane();
     component.setLayout(new BorderLayout());

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to