List of usage examples for javax.swing DefaultBoundedRangeModel setRangeProperties
public void setRangeProperties(int newValue, int newExtent, int newMin, int newMax, boolean adjusting)
BoundedRangeModel
properties after forcing the arguments to obey the usual constraints: minimum <= value <= value+extent <= maximum
At most, one ChangeEvent
is generated.
From source file:Main.java
public static void main(String args[]) { DefaultBoundedRangeModel model = new DefaultBoundedRangeModel(); model.setRangeProperties(1, 2, 3, 4, true); }