Swing Java Tutorial

Policy Type Description
VERTICAL_SCROLLBAR_AS_NEEDEDDisplays designated scrollbar if viewport is too small to display its entire contents
HORIZONTAL_SCROLLBAR_AS_NEEDEDDisplays designated scrollbar if viewport is too small to display its entire contents
VERTICAL_SCROLLBAR_ALWAYSAlways displays designated scrollbar
HORIZONTAL_SCROLLBAR_ALWAYSAlways displays designated scrollbar
VERTICAL_SCROLLBAR_NEVERNever displays designated scrollbar
HORIZONTAL_SCROLLBAR_NEVERNever displays designated scrollbar