package controls; import com.sun.javafx.runtime.VersionInfo; import javafx.application.Application; import javafx.scene.Node; import javafx.scene.Scene; import javafx.scene.control.CheckBox; import javafx.scene.control.ProgressIndicatorBuilder; import javafx.scene.layout.HBox; import javafx.scene.layout.Pane; import javafx.scene.layout.PaneBuilder; import javafx.stage.Stage; public class ProgressIndicatorCss extends Application { @Override public void start(Stage stage) { Pane root = new Pane(); Node node = ProgressIndicatorBuilder.create().progress(0.85)/*.minWidth(70).minHeight(80)*/.focusTraversable(false).build(); node.setStyle("-fx-background-color: green;"); root.getChildren().addAll(node); Scene scene = new Scene(root, 300, 100); stage.setScene(scene); stage.setTitle(VersionInfo.getRuntimeVersion()); stage.show(); } public static void main(String[] args) { launch(); } }