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.
很简单:我创建了一个包含两个 AnchorPanel 的“垂直”SplitPanel。我想在右窗格中加载不同的 fxml,但我似乎无法这样做。我从 FXMLLoader 得到一个窗格:
AnchorPane pane = (AnchorPane) FXMLLoader.load(MainMenuController.class.getResource("ContactGrid.fxml"));
如何在右侧面板中加载它?
splitpane.getItems().set(1, 窗格); getChildren 被 getItems 取代