The index must be a value greater than or equal to {@code 0}and less than or equal to the current size of the vector. (If the index is equal to the current size of the vector, the new element is appended to the Vector.)
This method is identical in functionality to the {@link #add(int,Object) add(int, E)}method (which is part of the {@link List} interface). Note that the{@code add} method reverses the order of the parameters, to more closelymatch array usage. @param obj the component to insert @param index where to insert the new component @throws ArrayIndexOutOfBoundsException if the index is out of range( {@code index < 0 || index> size()})
ListDataListener
s that the item has been added.
@param item the item to be added
@param index location to add the object
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|