In my Java FX application I have an FXML file with a TableView. There's a button that opens another FXML file with a formular to add entries to the table.
Each FXML file has its own controller class, so I can't access the TableView in the controller for the second FXML. How to call the initialize()-method (which updates the table) from the "new entry" form?
Or do I have to use the same controller class for both fxml files?
I've done quite a lot of research, but I could only find ways to update the table in the controller that contains the TableView.