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:
parent
dfa849f326
commit
81c740ba1b
@ -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>
|
2004-01-13 David Jee <djee@redhat.com>
|
||||||
|
|
||||||
* gnu/java/awt/peer/gtk/GtkContainerPeer.java
|
* gnu/java/awt/peer/gtk/GtkContainerPeer.java
|
||||||
|
@ -266,6 +266,15 @@ class DialogWindow extends Dialog implements SubWindow
|
|||||||
super (f, true);
|
super (f, true);
|
||||||
|
|
||||||
this.parent = f;
|
this.parent = f;
|
||||||
|
|
||||||
|
addWindowListener (new WindowAdapter ()
|
||||||
|
{
|
||||||
|
public void windowClosing (WindowEvent e)
|
||||||
|
{
|
||||||
|
System.out.println ("Window Closing");
|
||||||
|
hide ();
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setVisible (boolean visible)
|
public void setVisible (boolean visible)
|
||||||
|
Loading…
Reference in New Issue
Block a user