Menu.add
Class Overview | Class Members |
This Package |
All Packages
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
insert, insert
public void add( String label )
Parameters
- label
- the text on the item.
Description
Adds an item with the specified label to this menu.
See Also
insert, insert