【发布时间】:2016-10-25 15:08:19
【问题描述】:
如何在一个 VBox 中平均分配几个部分? 换句话说,我有这个 FXML 代码:
<Tab text="SOO properties">
<content>
<VBox>
<HBox>
<Text strokeType="OUTSIDE" strokeWidth="0.0" text="Name" />
<TextField />
</HBox>
<HBox>
<Text strokeType="OUTSIDE" strokeWidth="0.0" text="Number of MobileEntity slots" />
<TextField />
</HBox>
<HBox>
<Text strokeType="OUTSIDE" strokeWidth="0.0" text="MobileEntity buffer size" />
<TextField />
</HBox>
<HBox>
<Text strokeType="OUTSIDE" strokeWidth="0.0" text="Connections number" />
<TextField />
</HBox>
<HBox>
<Text strokeType="OUTSIDE" strokeWidth="0.0" text="Peripherals number" />
<TextField />
</HBox>
</VBox>
</content>
</Tab>
那个产品这个视图:
我怎样才能获得这样的东西?
【问题讨论】:
-
你可以使用javafx gridpane和voilla!docs.oracle.com/javase/8/javafx/api/javafx/scene/layout/…
-
谢谢,它工作正常!
-
请从您的问题中删除您的答案,创建一个新答案并接受它......或者请给您答案的人写一个实际答案。目前的状态......令人困惑
-
完成。我必须等待 2 天才能将我的答案标记为解决方案。
标签: java javafx fxml distribution vbox