小编php*_*p83的帖子

HiddenSidesPane fxml 示例

有人可以告诉我如何在 FXML 中而不是在控制器中构造 HiddenSidesPane 吗?

我有基本的控制器代码,但我无法理解如何从中创建 fxml 结构。

我可以有这样的东西吗?下面的代码;

<HiddenSidesPane prefWidth="800.0" pinnedSide="TOP">
            <content>
                <HBox fillHeight="false" nodeOrientation="RIGHT_TO_LEFT"
                    prefHeight="27.0" prefWidth="800.0" AnchorPane.bottomAnchor="0.0"
                    AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0"
                    AnchorPane.topAnchor="3.0" StackPane.alignment="TOP_RIGHT">
                    <children>
                        <Label prefHeight="14.0" prefWidth="94.0" text="Value Date From">
                            <HBox.margin>
                                <Insets right="2.0" top="5.0" />
                            </HBox.margin>
                        </Label>
                    </children>
                    <StackPane.margin>
                        <Insets top="2.0" />
                    </StackPane.margin>
                </HBox>
            </content>
        </HiddenSidesPane>
Run Code Online (Sandbox Code Playgroud)

javafx

2
推荐指数
1
解决办法
1855
查看次数

标签 统计

javafx ×1