public void setSelectedValue(int index) {
		if (index < 0 || index >= values.length) {
			throw new IllegalArgumentException("index out of range");
		}
		selected = index;
	}
Sets the current value to the object at the given position as if indexed
into the array returned by getValues().
Ghidra/Framework/Docking/src/main/java/docking/widgets/dialogs/StringChoices.java