Menu.add
Class Overview | Class Members | This Package | All Packages
Syntax 1
public synchronized MenuItem add( MenuItem mi )
Parameters
- mi
the menu item to be added.
Returns
the menu item added.
Description
Adds the specified menu item to this menu. If the menu item has been part of another menu, remove it from that menu.
See Also
Syntax 2
public void add( String label )
Parameters
- label
the text on the item.
Description
Adds an item with the specified label to this menu.