JAVAFX - FXML - Access Loaded FXML Controls from Parent Controller
问题 Here is what I am trying to accomplish. /Package A/ /Package A/ApplicationController.java /Package A/Application.fxml In my Application.fxml file I have a button, and when that button is clicked it loads the following "MyGrid.fxml" file. /Package B/ /Package B/MyGrid.fxml (has a label #mygridlabelid The code I am using is: ContentPane.getChildren().add((Node)FXMLLoader.load(getClass().getResource("/Package B/MyGrid.fxml"))); But the problem is.. even though I am loading the MyGrid.fxml file