Question: how to use jslider in netbeans?
Answer: If you want to specify the minimum and maximum values, use this constructor: slider = new JSlider(0, 50); The slider lets the user choose a value from 0 to 50. The initial position of the knob is 25, midway between the minimum and maximum values.