@BeanProperty(preferred=true, visualUpdate=true, enumerationValues={"JScrollBar.VERTICAL", "JScrollBar.HORIZONTAL"}, description="The scrollbar\'s orientation.")
public void setOrientation (int orientation)

Set the scrollbar's orientation to either VERTICAL or HORIZONTAL.

Parameters:
orientation    an orientation of the JScrollBar

Exceptions:
IllegalArgumentException    if orientation is not one of VERTICAL, HORIZONTAL

See also:
getOrientation