Code example for JScrollPane

Methods: setHorizontalScrollBarPolicy