I've view that contains a table and a button. The button opens a dialog (another view) with a few text fields and a button.
How can I add the data entered in the dialog's text fields to the table in the first window (the window that called the dialog).
main.fxml.MainController
dialog.fxml.DialogController
I've tried to set the table (TableView) in the main window to public static, but I still get the java.lang.NullPointerException
. I can add data to the table, but only from the same window where the table is.
Br,
Klaus