/**
* Creates the native peer for this object.
*/
public void addNotify()
{
MenuPeer peer = (MenuPeer) getPeer();
if (peer == null)
{
peer = getToolkit().createMenu(this);
setPeer(peer);
}
Enumeration e = items.elements();
while (e.hasMoreElements())
{
MenuItem mi = (MenuItem)e.nextElement();
mi.addNotify();
peer.addItem(mi);
}
super.addNotify();
}