您可以使用BorderPane ie:
FXMLLoader loader = new FXMLLoader(getClass().getResource("contacts.fxml"));
HBox root = loader.load();
rootPane.setTop(root);
}VBox没有.set(节点)方法。
发布于 2016-12-09 20:07:17
使用VBox (和许多其他Pane),您只需像修改任何其他List一样修改children ObservableList。
例如。
// add root as bottom-most child of rootPane
rootPane.getChildren().add(root);https://stackoverflow.com/questions/41067986
复制相似问题