to handle Window "Closing" events.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@75813
138bc75d-0d04-0410-961f-
82ee72b054a4
+2004-01-12 Fernando Nasser <fnasser@redhat.com>
+
+ * gnu/java/awt/peer/gtk/TestAWT.java (DialogWindow): Add WindowAdapter
+ to handle Window "Closing" events.
+
2004-01-13 David Jee <djee@redhat.com>
* gnu/java/awt/peer/gtk/GtkContainerPeer.java
super (f, true);
this.parent = f;
+
+ addWindowListener (new WindowAdapter ()
+ {
+ public void windowClosing (WindowEvent e)
+ {
+ System.out.println ("Window Closing");
+ hide ();
+ }
+ });
}
public void setVisible (boolean visible)