[英]javafx make button fill width
i have one button in a borderpane. 我在边框中有一个按钮。 I want the button to be stretched out horizontally so it fills the entire width.
我希望按钮水平延伸,以使其充满整个宽度。
how can i do that? 我怎样才能做到这一点?
只需将按钮的maxWidth
属性设置为MAX_VALUE
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.