public void removeNotify(){
synchronized (getTreeLock()) {
    FramePeer peer=(FramePeer)this.peer;
    if (peer != null) {
      getState();
      if (menuBar != null) {
        mbManagement=true;
        peer.setMenuBar(null);
        menuBar.removeNotify();
      }
    }
    super.removeNotify();
  }
}

public void removeNotify ( ) { synchronized ( getTreeLock ( ) ) { FramePeer peer = ( FramePeer ) this . peer ; if ( peer != null ) { getState ( ) ; if ( menuBar != null ) { mbManagement = true ; peer . setMenuBar ( null ) ; menuBar . removeNotify ( ) ; } } super . removeNotify ( ) ; } }
makes this frame undisplayable by removing its connection to its native screen resource . making a frame undisplayable will cause any of its children to be made undisplayable . this method is called by the toolkit internally and should not be called directly by programs .
