How to find an element with an ID in JavaFX?


Question

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?

1
55
8/30/2012 4:46:48 PM

Accepted Answer

Try

TableView tb = (TableView) scene.lookup("#history");
108
10/30/2013 3:25:13 PM

Licensed under: CC-BY-SA with attribution
Not affiliated with: Stack Overflow
Icon