title: Change stage titleProperty on selecting different tabs in javafx
body: <p>I guess there should be some event for this, but didn't find any. The code I have now is</p>
  
  <pre><code>stage.titleProperty().bind(tabPane.getSelectionModel().getSelectedItem().textProperty());
  </code></pre>
  
  <p>But it doesn't change the title dynamically, what's the right solution?</p>