Tower
Tower

Reputation: 102785

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?

Upvotes: 77

Views: 77826

Answers (1)

Uluk Biy
Uluk Biy

Reputation: 49185

Try

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

Upvotes: 145

Related Questions