Here's the part of the code where my question was about replacing FXMLoader -
public class JavaFXMain extends Application {
@Override
public void start(Stage primaryStage) throws Exception {
// Set the stage title and load FXML panes
primaryStage.setTitle("Welcome to My App");
FXMLLoader fxmlLoader1 = new FXMLLoader(getClass().getResource("/fxml/baseScreen.fxml"));
GridPane baseScreenPane = (GridPane) fxmlLoader1.load();
FXMLLoader fxmlLoader2 = new FXMLLoader(getClass().getResource("/fxml/startScreen.fxml"));
GridPane mainScreenPane = (GridPane) fxmlLoader2.load();
FXMLLoader fxmlLoader3 = new FXMLLoader(getClass().getResource("/fxml/testedRecordsScreen.fxml"));
GridPane testedRecordsScreenPane = (GridPane) fxmlLoader3.load();
FXMLLoader fxmlLoader4 = new FXMLLoader(getClass().getResource("/fxml/recordsErrorsScreen.fxml"));
GridPane recordsErrorsScreenPane = (GridPane) fxmlLoader4.load();
// Get the base controller and register the FXML panes on the controller
final BaseScreenController baseScreenController = (BaseScreenController) fxmlLoader1.getController();
baseScreenController.setMainScreenPane(mainScreenPane);
baseScreenController.setTestedRecordsPane(testedRecordsScreenPane);
baseScreenController.setRecordsErrorsPane(recordsErrorsScreenPane);
baseScreenController.setStage(primaryStage);
...
Trying to re-write the above using your DataFX Flow API. Could you suggest what would be the best way go about doing so?
Thanks
Tariq