Introducing ScrollBar : ScrollBar « SWT « Java Tutorial

  1. You don't create ScrollBars directly.
  2. You can retrieve a reference to the ScrollBar by calling getHorizontalBar() or getVerticalBar().

Scrollable Styles:

SWT.H_SCROLLCreates a horizontal ScrollBar (passes the SWT.HORIZONTAL style to ScrollBar's constructor)
SWT.V_SCROLLCreates a vertical ScrollBar (passes the SWT.VERTICAL style to ScrollBar's constructor)

17.81.1.Introducing ScrollBar
17.81.2.Show the selection value by using ScrollBarShow the selection value by using ScrollBar
17.81.3.Add Selection Listener to ScrollBarAdd Selection Listener to ScrollBar