javafx button颜色怎么改

如题所述

可以引入外部css文件,然后在里面通过.button的类型选择器设置;
也可以直接代码里button.setStyle("-fx-background-color: red")来修改;
温馨提示:内容为网友见解,仅供参考
无其他回答
相似回答