Ventana de ventana de Java Ventana Cerrar

thisWindow.addWindowListener(new WindowAdapter() {
                    @Override
                    public void windowClosing(WindowEvent we) {
                        //Do stuff
                    }
                } );
Zwazel