public void setValue(int value) {   if (minimum > value || value > (value + extent) || (value + extent) > maximum) { throw new IllegalArgumentException("Invalid value property set"); }   this.value = value;
public void setValue(int value) { value = Math.max(minimum, value); if (value + extent > maximum) value = maximum - extent;
	public void setValue(int value) {			// Validate Constraints		if (minimum > value || value > (value + extent) ||			(value + extent) > maximum) {			throw new IllegalArgumentException("Invalid value property set");		} // if				// Set Value		this.value = value;		// Notification		fireStateChanged();	} // setValue()