presentation.addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent we) { onWindowClose(); } });
    void attachListener()     {        tSlider = presentation.getTSlider();         zSlider = presentation.getZSlider();        tSlider.addChangeListener(this);        zSlider.addChangeListener(this);    }