I tested Progress Indicator in Java 8u40. I get this visual result when I tried to make simple example. Do you know how I can remove the rectangle borders?
this works for me with no border or other problems (JDK 1.8.0_20ea):
stage.setWidth(100);
stage.setHeight(100);
BorderPane root = new BorderPane();
ProgressIndicator progress = new ProgressIndicator();
progress.setMaxWidth(50);
progress.setMaxHeight(50);
root.setCenter(progress);
stage.setScene(new Scene(root));
stage.show();
Is this maybe a bug in 8u40?
Apply the CSS
-fx-box-border: transparent;
to the progress indicator.
来源:https://stackoverflow.com/questions/26462768/remove-rectangle-from-progress-indicator