简体   繁体   中英

How can I change the background color in the button without FXML? #JAVAFX

I've been trying to change the color of the window completely for a long time. I am missing the lower section.

Can anyone help me?

This is the code. I apologize for my beginner knowledge.

在此处输入图片说明

这是一个演示

If You want to do something like this the Thing You can do is Using a CSS file in javaFX FXML project if its not a javaFX FXML Project then I'm afraid you must share the source code of your project...

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM