title: Store dynamic screen with multiple stages
body: <p>I´ve got 2 different screens, in the first screen the user can load images and the other one is just a single button (the stage is invisible so the stage has to be different from screen 1) used to go back to the first stage. The problem is I don't know how to keep the images loaded when I go back from screen 2 to screen 1 (I hide stage 1 when I go to stage 2) . This is my current method in both screens.</p>
  
  <pre><code>    @FXML
  private void goToScreen1(ActionEvent event) throws Exception{
  
  
          Stage stage = (Stage) showStage.getScene().getWindow();
          FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource("/sample.fxml"));
          Parent root = fxmlLoader.load();
  
          Stage primaryStage = new Stage();
  
          primaryStage.setResizable(true);
          primaryStage.setOpacity(0.0);
          primaryStage.show();
  
          primaryStage.setX(0);
          primaryStage.setY(0);
          primaryStage.setHeight(primScreenBounds.getHeight());
          primaryStage.setWidth(primScreenBounds.getWidth() / 2);
  }
  </code></pre>