Constructor
There are several constructors for sliders.
Here is the one that is most useful:
JSlider( int orientation, int min, int max, int init )
- orientation:
JSlider.HORIZONTAL
or
JSlider.VERTICAL
- min: the minimum value.
The value when the slider is at the extreme left (or very bottom) of its range.
- max: the maximum value.
The value when the slider is at the extreme right (or very top) of its range.
- init: the initial value of the slider