Example usage for javax.swing DefaultBoundedRangeModel DefaultBoundedRangeModel

List of usage examples for javax.swing DefaultBoundedRangeModel DefaultBoundedRangeModel

Introduction

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

Prototype

public DefaultBoundedRangeModel(int value, int extent, int min, int max) 

Source Link

Document

Initializes value, extent, minimum and maximum.

Usage

From source file:Main.java

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

}

From source file:Sketch.java

public JogShuttle(int min, int max, int value) {
    init(new DefaultBoundedRangeModel(value, 1, min, max));
}