I am building a JavaFX application using the JavaFX Scene Builder. The interface was created in the Scene Builder and a FXML file (main.fxml) was created.
To use the
Due to a variety of entities eligible to be loaded through FXML you need to state the expected type yourself.
Parent page = FXMLLoader.load(MainWindowController.class.getResource("main.fxml").toExternalForm());