How to get the lower Node position (x, y) in BorderPane relative to the screen?

2

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.

    
asked by anonymous 24.11.2015 / 12:08

1 answer

2

I found the answer on the Stack in English:

Point2D bounds = borderPaneBottom.localToScene(borderPaneBottom.getLayoutBounds().getMinX(), borderPaneBottom.getLayoutBounds().getMinY());
    
24.11.2015 / 12:36