ThreeB 1.1
Public Member Functions | Private Attributes
CloseButtonListener Class Reference

Close button issues a window close event. More...

List of all members.

Public Member Functions

 CloseButtonListener (JFrame fr)
void actionPerformed (ActionEvent e)

Private Attributes

JFrame f

Detailed Description

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.


Constructor & Destructor Documentation

CloseButtonListener::CloseButtonListener ( JFrame  fr) [inline]

Definition at line 840 of file three_B.java.

References f.

    {
        f = fr;
    }

Member Function Documentation

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);
    }

Member Data Documentation

JFrame CloseButtonListener::f [private]

Definition at line 839 of file three_B.java.

Referenced by actionPerformed(), and CloseButtonListener().


The documentation for this class was generated from the following file: