Is there a way to reuse FXMLLoader?
954677Aug 30 2012 — edited Sep 4 2012I have a TableView with a custom cell factory. The layout of a cell is defined in an FXML file. So, everytime the factory is called a new FXMLLoader is created and the contents of the same FXML file are loaded over and over and over again... Which seems like a potentially big performance hit (if the file is read everytime load is called). I would guess that TableView reuses cells during scrolling (instead of creating new ones) but I'm still curious if there's a way to somehow reuse an FXMLLoader that already loaded a file (it would be awesome to see the source code...). Speaking of the source code, how come it's not available for FXMLLoader?