Example usage for javafx.scene.control ProgressIndicator setMaxHeight

List of usage examples for javafx.scene.control ProgressIndicator setMaxHeight

Introduction

In this page you can find the example usage for javafx.scene.control ProgressIndicator setMaxHeight.

Prototype

public final void setMaxHeight(double value) 

Source Link

Usage

From source file:Main.java

public static Node createProgressIndicator() {
    ProgressIndicator indicator = new ProgressIndicator();
    indicator.setMaxHeight(350);
    indicator.setMaxWidth(350);/*from ww w .  j av  a 2  s  .c  om*/

    BorderPane borderPane = new BorderPane();
    BorderPane.setMargin(indicator, new Insets(5));
    borderPane.setCenter(indicator);
    borderPane.setStyle("-fx-background-color: rgba(230,230,230,0.7);");
    return borderPane;
}