How do I get buttons to fill a javafx gridpane?

前端 未结 2 1360
一整个雨季
一整个雨季 2021-02-15 09:27

Java Swing has GridLayout, which allows you to specify a size for an array of widgets such as 3X4. The widgets then fill the panel they occupy. How do you get a s

2条回答
  •  说谎
    说谎 (楼主)
    2021-02-15 09:52

    I want to complete James_D's answer. I want to show how to achieve the same result using SceneBuilder.

    In SceneBuilder select the Node to grow and set "Max Width" and "Max Height" to MAX_VALUE

提交回复
热议问题