可以引入外部css文件,然后在里面通过.button的类型选择器设置; 也可以直接代码里button.setStyle("-fx-background-color: red")来修改;. 已赞过 已踩过<.
確定! 回上一頁