我正在寻找一种方法来说明在FXML中将maxWidth大小设置为80%.
就像在Web开发中一样.
<VBox fx:id="testVB" prefWidth="600">
但这不是: <VBox fx:id="testVB" prefWidth="80%">
<VBox fx:id="testVB" prefWidth="80%">
我知道在Straight JavaFX2中非fxml你可以创建insets吗?在FMXL代码之外执行此操作的最佳方法是什么?
谢谢!
浊
javafx-2
javafx-2 ×1