1 Reply Latest reply on Oct 2, 2013 12:19 AM by James_D

    FXML loading custom component scene slow


      All we are creating a custom component to place into a TilePane each time a user clicks a button like so


      FXMLLoader loader = new FXMLLoader(resource.getURL());
        Pane panel = (Pane)loader.load();
      Scene scene = panel.getScene();



      When we get panel.getScene() it is empty. So we created a new scene and then added that node to the tilePane. The only issue is, it is very slow and takes forever to appear on the tilePane. Is this the correct way of doing it?