How to find an element with an ID in JavaFX?

I have an element with the ID history type of TableView. How can I find and access this object if I have the instance of Scene scene?


Solution 1:

Try

TableView tb = (TableView) scene.lookup("#history");