我想检索Gridpane中一个特定单元格的内容.我把按钮放在了细胞中
setConstraints(btt , 0 ,1 ) setConstraints(btt , 0 ,2 ) getChildren().add....
在我的情况下,这GridPane.getChildren.get(10)是不好的.我想直接进入单元格(4,2)并获取其内容.
GridPane.getChildren.get(10)
javafx cell gridpanel
cell ×1
gridpanel ×1
javafx ×1