A JSlider component is used to represent a horizontal or vertical slider allowing the user to graphically set a value of a variable factoring in the minimum and maximum values. Check out the How to use Sliders section in Sun's Java Tutorial for more information.