Подгрузить fxml в компонент TabPane - Java
Формулировка задачи:
Подскажите как подгрузить fxml в компонент TabPane в первую или вторую вкладку
Решение задачи: «Подгрузить fxml в компонент TabPane»
textual
Листинг программы
ObservableList<Node> list = rootView.getItems();
AnchorPane anchorPane = (AnchorPane) list.get(1);
TabPane tabPane = (TabPane) anchorPane.getChildren().get(0);
tabPane.getTabs().get(3).setContent((Node) FXMLLoader.load(this.getClass().getResource("view/backup.fxml")));