How to find an element with an ID in JavaFX?

前端 未结 1 1178

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条回答
  • 2020-12-23 16:45

    Try

    TableView tb = (TableView) scene.lookup("#history");
    
    0 讨论(0)
提交回复
热议问题