11智能在线
新记
javafx button颜色怎么改
如题所述
举报该文章
相关建议 2016-12-07
可以引入外部css文件,然后在里面通过.button的类型选择器设置;
也可以直接代码里button.setStyle("-fx-background-color: red")来修改;
温馨提示:内容为网友见解,仅供参考
当前网址:
https://11.t2y.org/zz/v7ssq7vvpvm4s8mqmp.html
其他看法
无其他回答
相似回答
大家正在搜
相关问题
css怎么改变button的边框颜色
javafx 怎么改变按钮颜色
javafx怎么在修改button属性后更新
javaFX如何用Button实现跳转到一个已创建的fxml...
java语言 关于button按钮大小的设置问题
在JAVA里,怎么利用一个单独的类生成的窗体里的按钮控制另一...
按钮单选在javafx中怎么设置
javafx如何给按钮创建事件