public void insert (Component component, int index)

Inserts the specified component into the menu at a given position.

Parameters:
component    the Component to insert
index    specifies the position at which to insert the component, where 0 is the first

Exceptions:
IllegalArgumentException    if index < 0