Java Swing Tutorial - Java DefaultBoundedRangeModel .setValue (int n)








Syntax

DefaultBoundedRangeModel.setValue(int n) has the following syntax.

public void setValue(int n)

Example

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);
  }
}