Is there any way to get a specific Node from a gridPane if I know its location (row and column) or any other way to get a node from a gridPane?
相关问题
- Delete Messages from a Topic in Apache Kafka
- Jackson Deserialization not calling deserialize on
- How to maintain order of key-value in DataFrame sa
- StackExchange API - Deserialize Date in JSON Respo
- Difference between Types.INTEGER and Types.NULL in
I don't see any direct API to get node by row column index, but you can use
getChildren
API fromPane
, andgetRowIndex(Node child)
andgetColumnIndex(Node child)
fromGridPane
Here is the sample code to get the
Node
using row and column indices from theGridPane
Important Update:
getRowIndex()
andgetColumnIndex()
are now static methods and should be changed toGridPane.getRowIndex(node)
andGridPane.getColumnIndex(node)
.