DefaultBoundedRangeModel.setValue(int n) has the following syntax.
public void setValue(int n)
In the following code shows how to use DefaultBoundedRangeModel.setValue(int n) method.
import javax.swing.DefaultBoundedRangeModel; public class Main { public static void main(String args[]) { DefaultBoundedRangeModel model = new DefaultBoundedRangeModel(); model.setValue(100); } }