1 Reply Latest reply: Oct 1, 2013 7:19 PM by James_D RSS

    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?