public void remove(MenuComponent m){
  if (m == null) {
    return;
  }
synchronized (getTreeLock()) {
    if (m == menuBar) {
      menuBar=null;
      FramePeer peer=(FramePeer)this.peer;
      if (peer != null) {
        mbManagement=true;
        invalidateIfValid();
        peer.setMenuBar(null);
        m.removeNotify();
      }
      m.parent=null;
    }
 else {
      super.remove(m);
    }
  }
}

public void remove ( MenuComponent m ) { if ( m == null ) { return ; } synchronized ( getTreeLock ( ) ) { if ( m == menuBar ) { menuBar = null ; FramePeer peer = ( FramePeer ) this . peer ; if ( peer != null ) { mbManagement = true ; invalidateIfValid ( ) ; peer . setMenuBar ( null ) ; m . removeNotify ( ) ; } m . parent = null ; } else { super . remove ( m ) ; } } }
removes the specified menu bar from this frame .
