I have a BorderPane where it defines its bottom value with an HBox:
borderPane.setBottom(new HBox(children));
I'd like to know the position (x,y)
mainly y
of HBox in relation to the screen.
I have a BorderPane where it defines its bottom value with an HBox:
borderPane.setBottom(new HBox(children));
I'd like to know the position (x,y)
mainly y
of HBox in relation to the screen.
I found the answer on the Stack in English:
Point2D bounds = borderPaneBottom.localToScene(borderPaneBottom.getLayoutBounds().getMinX(), borderPaneBottom.getLayoutBounds().getMinY());