Enumeration e = menus.elements(); while (e.hasMoreElements()) { Menu mi = (Menu)e.nextElement(); mi.addNotify(); }
addNotify(){  if (getPeer() == null)    setPeer((MenuComponentPeer)getToolkit().createMenuBar(this));}