How do I get buttons to fill a javafx gridpane?

前端 未结 3 1451
伪装坚强ぢ
伪装坚强ぢ 2021-02-15 09:24

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

3条回答
  •  孤独总比滥情好
    2021-02-15 09:58

    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

提交回复
热议问题