Example usage for javax.swing DefaultBoundedRangeModel setRangeProperties

List of usage examples for javax.swing DefaultBoundedRangeModel setRangeProperties

Introduction

In this page you can find the example usage for javax.swing DefaultBoundedRangeModel setRangeProperties.

Prototype

public void setRangeProperties(int newValue, int newExtent, int newMin, int newMax, boolean adjusting) 

Source Link

Document

Sets all of the BoundedRangeModel properties after forcing the arguments to obey the usual constraints:
 minimum <= value <= value+extent <= maximum 

At most, one ChangeEvent is generated.

Usage

From source file:Main.java

public static void main(String args[]) {
    DefaultBoundedRangeModel model = new DefaultBoundedRangeModel();
    model.setRangeProperties(1, 2, 3, 4, true);
}