Code example for JScrollPane

Methods: setHorizontalScrollBarPolicysetVerticalScrollBarPolicy