[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cp-patches] [patch] examples swing/Demo.java
From: |
Andreas Tobler |
Subject: |
[cp-patches] [patch] examples swing/Demo.java |
Date: |
Mon, 25 Jul 2005 22:39:57 +0200 |
User-agent: |
Mozilla Thunderbird 1.0.5 (Macintosh/20050711) |
Hi all,
this one was bothering me since a longer time.
We should exit when one presses the 'Close' on the right bottom of the
panel.
Is it correct?
Andreas
2005-07-25 Andreas Tobler <address@hidden>
* examples/gnu/classpath/examples/swing/Demo.java: Exit when pressing
'Close' on the panel.
Index: gnu/classpath/examples/swing/Demo.java
===================================================================
RCS file:
/cvs/gcc/gcc/libjava/classpath/examples/gnu/classpath/examples/swing/Demo.java,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 Demo.java
--- gnu/classpath/examples/swing/Demo.java 16 Jul 2005 00:33:24
-0000 1.1.1.1
+++ gnu/classpath/examples/swing/Demo.java 25 Jul 2005 20:36:14 -0000
@@ -1063,7 +1063,13 @@
JButton exitDisposer = mkDisposerButton(frame);
panel.add(exitDisposer);
-
+ exitDisposer.addActionListener(new ActionListener()
+ {
+ public void actionPerformed(ActionEvent e)
+ {
+ System.exit(1);
+ }
+ });
return panel;
}
- [cp-patches] [patch] examples swing/Demo.java,
Andreas Tobler <=