我的HBox中有三个窗格。
<HBox prefHeight="100.0" prefWidth="200.0" BorderPane.alignment="CENTER">
<children>
<Pane id="First" prefHeight="200.0" prefWidth="200.0" />
<Pane id="Second" prefHeight="200.0" prefWidth="200.0" />
<Pane id="Third" prefHeight="200.0" prefWidth="200.0" />
</children>
</HBox>
我想拖动First Pane&amp; amp;第二个窗格。那样 -
答案 0 :(得分:0)
您应该将第一个和第二个窗格放入SplitPane:
<HBox prefHeight="100.0" prefWidth="200.0">
<SplitPane>
<Pane id="First" prefHeight="200.0" prefWidth="200.0"/>
<Pane id="Second" prefHeight="200.0" prefWidth="200.0"/>
</SplitPane>
<Pane id="Third" prefHeight="200.0" prefWidth="200.0"/>
</HBox>