public void killWindow(){
  ComponentEvent ce=null;
  if (display != null) {
    ce=display.kill();
  }
  if (ce != null) {
    componentHidden(ce);
  }
}

public void killWindow ( ) { ComponentEvent ce = null ; if ( display != null ) { ce = display . kill ( ) ; } if ( ce != null ) { componentHidden ( ce ) ; } }
set the window to be hidden and fire a componentevent for component_hidden . normally , just setting the visibility of the window would be enough , but we ' re running into that problem we had with the layers not firing componentevents when hidden . this method calls componenthidden , which in turn calls cleanup .
