8
是否可以将网格窗格扩展为最大宽度和高度?将GridPane扩展为最大宽度和高度
我有以下:
<fx:root type="javafx.scene.layout.AnchorPane" xmlns:fx="http://javafx.com/fxml"
stylesheets="view/Style.css">
<children>
<GridPane xmlns:fx="http://javafx.com/fxml"
AnchorPane.topAnchor="0.0" AnchorPane.bottomAnchor="128.0"
AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0"
hgap="10" vgap="10">
<!--anything-->
</GridPane>
</children>
</fx:root>
,我想扩大网格窗格到(除了下部,从而整个屏幕)由锚窗格中确定的限制
谢谢,但是maxHeight和maxWidth有什么意义?这部分在我的申请中没有任何区别。 – Hassan 2015-11-13 22:45:34