title: javafx2.0 - force refresh the scene
body: <p>In my app, one scene having the popup dialog which consists of some fields and buttons. If you click on the button then I want to dismiss the popup dialog as well as update the some fields in the scene. Indirectly I want to refresh scene. is it possible?</p>
  
  <p>I used the following code.Here what I did is, I get the controller of that scene and then update the field using id. but it doesn't work. </p>
  
  <pre><code> URL location = AdmincontrolController.class.getResource("admincontrol.fxml");
  
   FXMLLoader fxmlLoader = new FXMLLoader();
   fxmlLoader.setLocation(location);
   fxmlLoader.setBuilderFactory(new JavaFXBuilderFactory());
   try {
       Parent root = (Parent) fxmlLoader.load(location.openStream());
       AdmincontrolController controller = fxmlLoader.getController();
       System.out.println("AdmincontrolController: "+controller);
       controller.setEmail(item.getEmail());
   } catch (IOException ex) {
       Logger.getLogger(Add_loginController.class.getName()).log(Level.SEVERE, null, ex);
   }
  </code></pre>
  
  <p><strong>Scenario:</strong></p>
  
  <p><strong><em>scene</em></strong>
  <img src="https://i.stack.imgur.com/YJ2ix.png" alt="enter image description here"></p>
  
  <p><strong><em>Popup</em></strong> - If we clicks on the add then we need to dismiss that dialog and change the email text on the previous scene.
  <img src="https://i.stack.imgur.com/fdtWw.png" alt="enter image description here"></p>