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); } }