|
ThreeB 1.1
|
Close button issues a window close event. More...
Public Member Functions | |
| CloseButtonListener (JFrame fr) | |
| void | actionPerformed (ActionEvent e) |
Private Attributes | |
| JFrame | f |
Close button issues a window close event.
Actual closing logic is then done in the close event handler.
Definition at line 837 of file three_B.java.
| CloseButtonListener::CloseButtonListener | ( | JFrame | fr | ) | [inline] |
| void CloseButtonListener::actionPerformed | ( | ActionEvent | e | ) | [inline] |
Definition at line 846 of file three_B.java.
References f.
{
//Voodoo from Stack Overflow
WindowEvent wev = new WindowEvent(f, WindowEvent.WINDOW_CLOSING);
Toolkit.getDefaultToolkit().getSystemEventQueue().postEvent(wev);
}
JFrame CloseButtonListener::f [private] |
Definition at line 839 of file three_B.java.
Referenced by actionPerformed(), and CloseButtonListener().
1.7.4