public void setHorizontalScrollBarPolicy (int x)

Sets the horizontal scrollbar-display policy. The options are:

Note: Applications should use the JScrollPane version of this method. It only exists for backwards compatibility with the Swing 1.0.2 (and earlier) versions of this class.

Parameters:
x    an int giving the display policy

Exceptions:
IllegalArgumentException    if x is not a valid horizontal scrollbar policy, as listed above