Initializes this menu to contain the specified list of menu items.
public void setMenuItems( MenuItem[] value )
value
An array of MenuItem objects, in which each element in the array specifies an item to add to the menu.
A call to this method replaces all the menu's current items.