Create a vertical slider with custom min, max, and 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(JSlider.VERTICAL, minimum, maximum, initValue);
}
}
Related examples in the same category