removeMenuBarPeer(menuBar);
removeMenuBarPeer();
  public void setMenuBar (MenuBar bar)  {    if (bar == null)    {          if (menuBar != null)      {        removeMenuBarPeer(menuBar);         menuBar = null;        moveLayout(menuBarHeight);        insets.top -= menuBarHeight;        menuBarHeight = 0;              awtComponent.doLayout();      }    }    else    {      int oldHeight = 0;      if (menuBar != null)      {        removeMenuBarPeer(menuBar);        oldHeight = menuBarHeight;        insets.top -= menuBarHeight;      }      menuBar = (MenuBarPeer) ((MenuBar) bar).getPeer();      setMenuBarPeer(menuBar);      menuBarHeight = getMenuBarHeight (menuBar);      if (oldHeight != menuBarHeight)        moveLayout(oldHeight - menuBarHeight);      insets.top += menuBarHeight;      awtComponent.doLayout();    }  }