/**
* Creates this object's native peer.
*/
public void addNotify()
{
MenuBarPeer peer = (MenuBarPeer) getPeer();
if (peer == null)
{
peer = getToolkit().createMenuBar(this);
setPeer(peer);
}
Enumeration e = menus.elements();
while (e.hasMoreElements())
{
Menu mi = (Menu)e.nextElement();
mi.addNotify();
peer.addMenu(mi);
}
if (helpMenu != null)
{
helpMenu.addNotify();
peer.addHelpMenu(helpMenu);
}
}