Searched defs:anIndex (Results 1 - 1 of 1) sorted by relevance

/openjdk7/jdk/src/share/classes/javax/swing/
H A DJComboBox.java606 * 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) { argument
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));
759 removeItemAt(int anIndex) argument
[all...]

Completed in 34 milliseconds