code: public final void setMax(final int max) {
  		if (max < 0) {
  			throw new IllegalArgumentException(ILLEGAL_MAX);
  		}
  		if (max != getMax()) {
  			getOrCreateComponentModel().max = max;
  		}
  	}
docs: Sets the maximum value of the progress bar.
  
  @param max the maximum allowable value.