title: Problems with list view after updating to java 8
body: <p>After updating to Java 8, i got problems displaying content of list view</p>
  
  <pre><code>  public class TestController extends AnchorPane implements Initializable {
  
          @FXML
          private ListView&lt;String&gt; listView;
  
          @Override
          public void initialize(URL url, ResourceBundle rb) {
  
          }
  
          public void setApp() {
              setContent();
          }
  
          /**
           * Set content in list
           */
          private void setContent() {
              ObservableList&lt;String&gt; items = FXCollections.observableArrayList();
              items.add("1");
              items.add("2");
  
  
              listView.setItems(items);
  
          }
      }
  </code></pre>
  
  <p>With Java 7 this gives me a list with values. After update to java 8, it gives me a empty frame.</p>
  
  <p>Thanks James_D, here is the code you asked for</p>
  
  <pre><code>public void goToTest() {
              try {
                  TestController test = (TestController) replaceSceneContent("/fxml/test.fxml");
                  test.setApp();
  
              } catch (Exception ex) {
                  System.out.println("Error loading: " + ex + " - " + ex.getMessage());
              }
          }
  
       private Initializable replaceSceneContent(String fxml) throws Exception {
              FXMLLoader loader = new FXMLLoader();
              InputStream in = MainApp.class.getResourceAsStream(fxml);
              loader.setBuilderFactory(new JavaFXBuilderFactory());
              loader.setLocation(MainApp.class.getResource(fxml));
              AnchorPane page;
              try {
                  page = (AnchorPane) loader.load(in);
              } finally {
                  in.close();
              }
  
              Scene scene = new Scene(page);
              stage.setScene(scene);
              stage.sizeToScene();
              stage.setResizable(resizable);
              return (Initializable) loader.getController();
          }
  </code></pre>