Menu.insert

Menu.insert

Class Overview | Class Members | This Package | All Packages

Syntax 1
public synchronized void insert( MenuItem menuitem, int index )
Parameters
menuitem
the menu item to be inserted.
index
the position at which the menu item should be inserted.
Description
Inserts a menu item into this menu at the specified position.

Exceptions
IllegalArgumentException if the value of index is less than zero.
See Also
add, add



Syntax 2
public void insert( String label, int index )
Parameters
label
the text on the item.
index
the position at which the menu item should be inserted.
Description
Inserts a menu item with the specified label into this menu at the specified position.

See Also
add, add