【发布时间】:2014-02-08 10:26:46
【问题描述】:
我的 Javafx 应用程序中有一个 HBox,配置如下
HBox belowBox = new HBox(10);
belowBox.getStyleClass().addAll("pane", "vbox");
belowBox.setAlignment(Pos.CENTER);
belowBox.getChildren().addAll( .... );
belowBox.setMaxHeight(200);
belowBox.setPrefHeight(200);
belowBox.setFillHeight(false);
但如果我调整我的应用程序的大小,HBox 仍然会垂直增长。有没有办法固定高度。
谢谢
【问题讨论】: