public void windowClosing(WindowEvent e)
    {
        if (m_dialog.getContentPane().getComponentCount() > 0)
            if (m_dialog.getContentPane().getComponent(0) instanceof BaseApplet)
                ((BaseApplet)m_dialog.getContentPane().getComponent(0)).free();
        m_dialog.dispose();     // Remove dialog.
    }
public void windowClosing ( WindowEvent e ) { if ( m_dialog . getContentPane ( ) . getComponentCount ( ) > 0 ) if ( m_dialog . getContentPane ( ) . getComponent ( 0 ) instanceof BaseApplet ) ( ( BaseApplet ) m_dialog . getContentPane ( ) . getComponent ( 0 ) ) . free ( ) ; m_dialog . dispose ( ) ; }
The window is closing, free the sub-BaseApplet.
@param e The window event.