new JSlider(int min, int max, int value)
import javax.swing.JSlider;
public class Main {
public static void main(String[] argv) throws Exception {
int initValue = 0;
int minimum = 10;
int maximum = 100;
JSlider slider = new JSlider(minimum, maximum, initValue);
}
}
Related examples in the same category