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:
committed by
Fernando Nasser
parent
dfa849f326
commit
81c740ba1b
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user