-1

How can I access a tableview's methods, such as refresh, from a different window?

  • This problem isn't really about "modal" windows; it is about how a changes to a model are received and processed by a view. Perhaps there is a missing listener registration? Or there is a missing event fire on the change? – KevinO May 25 '19 at 03:03
  • Possibly related: https://stackoverflow.com/questions/13906139/javafx-update-of-listview-if-an-element-of-observablelist-changes – KevinO May 25 '19 at 03:04

1 Answers1

0

You will need something similar to the following steps:

  • Call to open the modal view and pass your tableview and whatever you need of other values to it.
  • Init tableView to a local tableview vaiable in the modal view (controller)
  • Create a method in modal view controller that will update the tableview when an event happened (like save button clicked).

You need to take a look on how to pass the values and items between different controllers in JavaFX