title: Refreshing tableView in JavaFx after closing dialog
body: <p>I have two layouts in JavaFX app. The first one contains table view whereas the second one is a simple dialog to input data. The problem is that I want to refresh data after closing the dialog. Now I have a button on the first layout which refreshes data:</p>
  
  <pre><code>data.removeAll(data);
  loadDataToTable();
  </code></pre>
  
  <p>But I don't want to invoke methods shown above with the button but automatically right after closing the dialog. I don't know how to make this, let's say, connection between those controllers.</p>
  
  <p>thanks in advance</p>