Scroller Parameters
The constructor method for scrollbar objects uses 5 parameters.
e.g.
Scrollbar(Scrollbar.VERTICAL, 0,1,0,100)
- The first parameter obviously sets the orientation of the scroll bar. The possible values are VERTICAL and HORIZONTAL.
- The second parameter sets the initial value. Usually you will use the minimum value but in some cases you might want to set it somewhere else.
- The third parameter sets the interval. Usually this will be 1.
- The next 2 numbers represent the range of the scrollbar.