Remove rectangle from Progress Indicator

别等时光非礼了梦想. 提交于 2019-12-06 15:26:56

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.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!