if (getPeer() == null) setPeer(getToolkit().createMenuBar(this));
MenuBarPeer peer = (MenuBarPeer) getPeer(); if (peer == null) { peer = getToolkit().createMenuBar(this); setPeer(peer); }
  public void addNotify()  {  if (getPeer() == null)      setPeer(getToolkit().createMenuBar(this));  Enumeration e = menus.elements();  while (e.hasMoreElements())  {    Menu mi = (Menu)e.nextElement();    mi.addNotify();  }  if (helpMenu != null)  {    helpMenu.addNotify();    ((MenuBarPeer) peer).addHelpMenu(helpMenu);  }  }