public void setSelectedValue ( E value ) { String valstr = value . toString ( ) ; for ( int ii = 0 ; ii < getItemCount ( ) ; ii ++ ) { if ( getValue ( ii ) . equals ( valstr ) ) { setSelectedIndex ( ii ) ; break ; } } }
Selects the specified value .