TestAWT.java (DialogWindow): Add WindowAdapter to handle Window "Closing" events.

* gnu/java/awt/peer/gtk/TestAWT.java (DialogWindow): Add WindowAdapter
        to handle Window "Closing" events.

From-SVN: r75813
This commit is contained in:
Fernando Nasser 2004-01-13 20:00:00 +00:00 committed by Fernando Nasser
parent dfa849f326
commit 81c740ba1b
2 changed files with 14 additions and 0 deletions

View File

@ -1,3 +1,8 @@
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

View File

@ -266,6 +266,15 @@ class DialogWindow extends Dialog implements SubWindow
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)