Lines Matching refs:anIndex
606 * Selects the item at index <code>anIndex</code>.
608 * @param anIndex an integer specifying the list item to select,
610 * @exception IllegalArgumentException if <code>anIndex</code> < -1 or
611 * <code>anIndex</code> is greater than or equal to size
616 public void setSelectedIndex(int anIndex) {
619 if ( anIndex == -1 ) {
621 } else if ( anIndex < -1 || anIndex >= size ) {
622 throw new IllegalArgumentException("setSelectedIndex: " + anIndex + " out of bounds");
624 setSelectedItem(dataModel.getElementAt(anIndex));
750 * Removes the item at <code>anIndex</code>
754 * @param anIndex an int specifying the index of the item to remove,
759 public void removeItemAt(int anIndex) {
761 ((MutableComboBoxModel<E>)dataModel).removeElementAt( anIndex );