How to find an element with an ID in JavaFX?

前端 未结 1 1183

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)
提交回复
热议问题