view.tabs.addChangeListener(new ChangeListener() { public void stateChanged(ChangeEvent e) { handleTabPaneSelection(); }});
    private void attachListeners()    {        view.addWindowListener(new WindowAdapter() {            public void windowClosing(WindowEvent we) { handleClose(); }        });    }