Example usage for javafx.scene.control Slider maxProperty

List of usage examples for javafx.scene.control Slider maxProperty

Introduction

In this page you can find the example usage for javafx.scene.control Slider maxProperty.

Prototype

public final DoubleProperty maxProperty() 

Source Link

Usage

From source file:Main.java

private static Node createProgressPanel() {
    final Slider slider = new Slider();

    final ProgressIndicator progressIndicator = new ProgressIndicator(0);
    progressIndicator.progressProperty().bind(Bindings.divide(slider.valueProperty(), slider.maxProperty()));

    final HBox panel = createHBox(6, new Label("Progress:"), slider, progressIndicator);
    configureBorder(panel);/*from  w  ww. ja  v  a 2 s.  co m*/

    return panel;
}