Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
非常に単純です。2つのAnchorPanesを含む「垂直」SplitPanelを作成しました。右側のペインに別のfxmlをロードしたいのですが、ロードできないようです。FXMLLoaderからペインを取得します。
AnchorPane pane = (AnchorPane) FXMLLoader.load(MainMenuController.class.getResource("ContactGrid.fxml"));
これを右側のパネルにロードするにはどうすればよいですか?
splitpane.getItems()。set(1、pane); getChildrenはgetItemsに置き換えられます