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 { @Override public void start(Stage stage) { ProgressIndicator progressIndicatorOriginal = new ProgressIndicator(-1); ProgressIndicator progressIndicator = new ProgressIndicator(-1); progressIndicator.getStylesheets().add("Bug.css"); GridPane gridPane = new GridPane(); gridPane.addRow(0, new Label("Original"), new Label("With CSS")); gridPane.addRow(1, progressIndicatorOriginal, progressIndicator); Scene scene = new Scene(gridPane); stage.setTitle("Bug"); stage.setScene(scene); stage.show(); } public static void main(String[] args) { Application.launch(args); } }