DEV Community

Discussion on: JavaFX: 3 Ways of Passing Information Between Scenes!

Collapse
 
refeed profile image
Rafid Aslam

The step 2 on "Manually creating the controller" method section should be to create a new instance of FXMLLoader not calling FXMLLoader.load

FXMLLoader loader = new FXMLLoader(getClass().getClassLoader().getResource("fxml/SceneB.fxml"));
Enter fullscreen mode Exit fullscreen mode
Collapse
 
devtony101 profile image
Miguel Manjarres

Right, I can see why the title can be misleading, I will update it. Thank you for your feedback!