import javafx.application.Application; import javafx.scene.Scene; import javafx.scene.control.Label; import javafx.scene.control.ProgressIndicator; import javafx.scene.layout.GridPane; import javafx.stage.Stage; public class Bug extends Application { public ProgressIndicator createNode() { return new ProgressIndicator(-1); } @Override public void start(Stage stage) { GridPane gridPane = new GridPane(); gridPane.addColumn(0, new Label("Original"), createNode()); for (int i = 0; i < 20; i ++) { ProgressIndicator progressIndicator = createNode(); progressIndicator.setStyle("-fx-indeterminate-segment-count: " + i); gridPane.addColumn(i + 1, new Label("" + i), progressIndicator); } Scene scene = new Scene(gridPane); stage.setTitle("Bug"); stage.setScene(scene); stage.show(); } public static void main(String[] args) { Application.launch(args); } }