[英]Background transparent not working JavaFX
Hello I have an popup like this : 您好,我有一个类似这样的弹出窗口:
The problem is I have the background white back the border-radius like in the picture. 问题是我的背景像图片中的边框半径一样白了。
I have the CSS like this : 我有这样的CSS:
.anchorPanePopUpError {
-fx-border-color: #BDC3C7;
-fx-border-width: 5px;
-fx-border-radius: 30px;
-fx-background-radius: 30px;
}
And I have not the problem on my computer but in an other computer althought the Java version is the same. 我的计算机上没有问题,但是在另一台计算机上虽然Java版本相同。
Help please. 请帮助。
i had the same problem today, when you create the stage you need to use setStageStyle(StageStyle.TRANSPARENT). 我今天遇到了同样的问题,当您创建舞台时,需要使用setStageStyle(StageStyle.TRANSPARENT)。 You might have it set to UNDECORATED
您可能将其设置为UNDECORATED
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.