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
2 changed files with 14 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue