Example usage for java.awt Adjustable setValue

List of usage examples for java.awt Adjustable setValue

Introduction

In this page you can find the example usage for java.awt Adjustable setValue.

Prototype

void setValue(int v);

Source Link

Document

Sets the current value of the adjustable object.

Usage

From source file:Main.java

protected static void moveAdjustable(int location, Adjustable scrollBar) {
    if (scrollBar == null) {
        return;/*from   w w w.ja  va 2s  .co m*/
    }
    scrollBar.setValue(location);
}