Answer:
A ChangeListener
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.HORIZONTALorJSlider.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