问题 I am creating an application using JavaFX 8. I change the content of a grid pane dynamically using drag/drop. I wish to iterate GridPane contents per row or per row/col. JavaFX allows adding nodes in a GridPane by specifying the row and column. gridPane.add(node, col, row); I would like to read the nodes of a GridPane on the same way, by specifying the row and column. I would like to have something similar to the below source (the below code is not correct), for(int row = 0; row <