Java tutorial
import javax.swing.DefaultBoundedRangeModel; public class Main { public static void main(String args[]) { DefaultBoundedRangeModel model = new DefaultBoundedRangeModel(); model.setRangeProperties(1, 2, 3, 4, true); } }