@BeanProperty(preferred=true, enumerationValues={"SwingConstants.HORIZONTAL", "SwingConstants.VERTICAL"}, description="The current orientation of the tool bar")
public void setOrientation (int o)

Sets the orientation of the tool bar. The orientation must have either the value HORIZONTAL or VERTICAL. If orientation is an invalid value, an exception will be thrown.

Parameters:
o    the new orientation -- either HORIZONTAL or VERTICAL

Exceptions:
IllegalArgumentException    if orientation is neither HORIZONTAL nor VERTICAL

See also:
getOrientation