Code example for JScrollPane

Methods: setVerticalScrollBarPolicy