![]() |
![]() |
![]() |
![]() |
![]() |
|
A graphical summary of the window-closing machinery follows:
*-- Machinery defined here calls *-- Defines windowClosing
| windowClosing method with | method as required by
| connected listener instance | WindowListener interface
| as the target when event |
v occurs here v
*-----------* | *----------------*
| JFrame | *------* | Listener class |
*-----------* | *----------------*
|
v
*-----------------* *-------------------*
| JFrame instance | <---------------- | Listener instance |
*-----------------* Connected using *-------------------*
the addWindowListener
method