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;
/*w w w . j a v a2s . c o m*/
public class Main {
public static void main(String args[]) {
DefaultBoundedRangeModel model = new DefaultBoundedRangeModel();
model.setValue(100);
}
}
Home »
Java Tutorial »
javax.swing »
Java Tutorial »
javax.swing »