private void showWindow ( Window newWindow ) { if ( window != null ) { window . remove ( getGUIComponent ( ) ) ; window . setVisible ( false ) ; window . dispose ( ) ; window = null ; } newWindow . add ( getGUIComponent ( ) , BorderLayout . CENTER ) ; newWindow . pack ( ) ; newWindow . setVisible ( true ) ; this . window = newWindow ; }
Helper method for showing the evolution monitor in a frame or dialog .