title: Refresh Screen for language change in JavaFX
body: <p>I am building a JavaFX application with multi language support. So while loading the <code>fxml</code> file by:</p>
  
  <pre><code>AnchorPane page = (AnchorPane) FXMLLoader.load(Main.class.getResource("fxml/RealTimeInitialPanel.fxml"),Language.getBundle());
  </code></pre>
  
  <p>I am passing the resource bundle based on the default <code>Language</code>. Above <code>Language</code> class extends ResourceBundle and returns String based on the current Locale. To change language, I just have to call up <code>Language.setLocale(..)</code>. Everything works well.</p>
  
  <p>But say now the user changes the language on the go. How do I signal the fxml or UI to refresh the screen. That way they will again call up <code>getString(..)</code> and the text gets updated based on the setLocale. In swing, it does refresh periodically. But with fx iam unable to</p>