【发布时间】:2017-01-04 13:23:06
【问题描述】:
我是 javaFx 新手并使用 fxml 创建模板。
我无法将Vbox 放在太大的Pane 中,尽管我确信它一定非常简单。
我还想要VBox 周围的边框。
有人可以帮忙吗?这是我所拥有的:
<TitledPane text="Title" collapsible="false">
<content>
<GridPane hgap="10" vgap="10">
<children>
<VBox alignment="TOP_CENTER" spacing="10">
<!-- Content -->
</VBox>
</children>
<columnConstraints>
<ColumnConstraints halignment="CENTER"/>
</columnConstraints>
<rowConstraints>
<RowConstraints/>
</rowConstraints>
</GridPane>
</content>
</TitledPane>
我猜GridPane 是个坏主意,但这是我知道的拥有我想要的边框的方式。
感谢您的宝贵时间!
【问题讨论】:
标签: javafx-8 fxml centering pane