valueIndex = list.indexOf(value);  if (valueIndex == -1) { throw new IllegalArgumentException("The supplied value does not " + "exist in this list"); }  index = valueIndex;  fireStateChanged(); }
valueIndex = list.indexOf(value);  if (valueIndex == -1) throw new IllegalArgumentException("The supplied value does not " + "exist in this list");  index = valueIndex;  fireStateChanged(); }
    public void setValue(Object value)    {	int valueIndex;	/* Search for the value in the list */	valueIndex = list.indexOf(value);	/* Check for the value being found */	if (valueIndex == -1)	    {		throw new IllegalArgumentException("The supplied value does not "						   + "exist in this list");	    }	/* Make the indices match */	index = valueIndex;	/* Notify the listeners */	fireStateChanged();    }