Menu.insert
Class Overview | Class Members |
This Package |
All Packages
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
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