Example usage for java.awt Scrollbar getValue

List of usage examples for java.awt Scrollbar getValue

Introduction

In this page you can find the example usage for java.awt Scrollbar getValue.

Prototype

public int getValue() 

Source Link

Document

Gets the current value of this scroll bar.

Usage

From source file:gdsc.utils.HSB_Picker.java

private void setSliderLabel(final Scrollbar sliderField, final Label sliderLabel, double scale) {
    double value = sliderField.getValue() / scale;
    sliderLabel.setText(String.format("%.2f", value));
}