Home Segments Top Top Previous Next

689: Mainline

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