Example usage for javafx.scene.control ProgressIndicator setPrefWidth

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

Introduction

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

Prototype

public final void setPrefWidth(double value) 

Source Link

Usage

From source file:com.playonlinux.ui.impl.javafx.mainwindow.center.ViewApps.java

private void initWait() {
    ProgressIndicator progressIndicator = new ProgressIndicator();
    progressIndicator.setPrefWidth(64);
    progressIndicator.setPrefHeight(64);

    progressIndicatorPanel = new HBox();
    progressIndicatorPanel.getStyleClass().add("rightPane");

    progressIndicatorPanel.getChildren().add(progressIndicator);
    progressIndicatorPanel.setAlignment(Pos.CENTER);
}

From source file:dpfmanager.shell.interfaces.gui.component.dessign.DessignView.java

private void showLoadingConfig() {
    ProgressIndicator pi = new ProgressIndicator();
    pi.setPrefWidth(75);
    pi.setPrefHeight(75);// w w  w .j  a  v  a  2 s . c  o  m
    pi.setProgress(-1);
    vBoxConfig = new VBox();
    vBoxConfig.setAlignment(Pos.TOP_CENTER);
    vBoxConfig.setPrefWidth(configScroll.getWidth() - 5);
    vBoxConfig.getChildren().add(pi);
    VBox.setMargin(pi, new Insets(10, 0, 0, 0));
    configScroll.setContent(vBoxConfig);
}