从进度指示器中删除矩形 [英] Remove rectangle from Progress Indicator

查看:116
本文介绍了从进度指示器中删除矩形的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Java 8u40中测试了进度指示器。当我试图做出简单的例子时,我得到了这个视觉效果。你知道如何删除矩形边框吗?

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?

推荐答案

这对我来说没有边界或其他问题(JDK 1.8.0_20ea):

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();

这可能是8u40中的错误吗?

Is this maybe a bug in 8u40?

这篇关于从进度指示器中删除矩形的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆