throw new IllegalArgumentException("orientation must be one of VERTICAL or HORIZONTAL");
throw new IllegalArgumentException(orientation + " is not a legal orientation");
  public void setOrientation(int orientation)  {    if (orientation != VERTICAL && orientation != HORIZONTAL)      throw new IllegalArgumentException("orientation must be one of VERTICAL or HORIZONTAL");    if (this.orientation != orientation)      {	int oldOrientation = this.orientation;	this.orientation = orientation;	firePropertyChange("orientation", oldOrientation,	                   this.orientation);      }  }