GridPane 类有用于 GridPane 布局的静态 setHgrow() 和 setVgrow() 方法。 静态 setHgrow() 方法传递 Priority.ALWAYS 参数意味着我们希望该节点占用所有可用的水平空间,并与水平增长限制为 ALWAYS 的其他节点共享此空间。