title: JavaFX Switch Scene in a SplitPane?
body: <p>At the Base I have an AnchorPane then a SplitPane. On the left pane I have a listView and depending on the list element selected, the right pane displays the appropriate content. The way I have done this is by overlapping AnchorPanes and setting them to .setVisible(false) initially and as they are selected I set them to .setVisible(true) like so :</p>
  
  <pre><code>public void listSelection() {       
      String selection = listView.getSelectionModel().getSelectedItem();
      switch(selection) {
      case "Speed of sound":
          disableOld(); // disables old AnchorePane
          response.setText("Speed of sound conversion");
          AnchorPane1.setVisible(true);   
          break;
      case "Temperature conversion":
          disableOld(); 
          response.setText("Temperature conversion");
          AnchorPane2.setVisible(true);       
          break;
      }
  }
  </code></pre>
  
  <p>I would like to know how to produce the same effect visually but with different scenes as I would like for each new AnchorPane to have it's own FXML and ControllerClass.</p>
  
  <p><a href="http://i.stack.imgur.com/V2VYK.png" rel="nofollow"></a></p>