Code example for Choice

Methods: getSelectedIndexselect

0
axis0 = i;
			int[] axes = { axis0, axis1 };
			axisHash.put(activeImpID, axes.clone());
			updateDirections(); 
		} else if (source.equals(axis1Choice)) {
			int i = axis1Choice.getSelectedIndex();
			if (i == axis0Choice.getSelectedIndex()) {
				axis1Choice.select(axis1);
				IJ.error("Both axes cannot indicate the same direction"); 
				return; 
			} 
			axis1 = i;
			int[] axes = { axis0, axis1 };
			axisHash.put(activeImpID, axes.clone());
			updateDirections(); 
		} else if (source.equals(reflect0)) {
			isReflected0 = reflect0.getState();
			boolean[] reflectors = { isReflected0, isReflected1 };
			reflectHash.put(activeImpID, reflectors.clone());