Back to course

AnchorPane and Precise Positioning

JavaFX 0 to Hero

AnchorPane and Precise Positioning

AnchorPane allows you to 'anchor' nodes to the edges of the pane. This ensures that nodes stay at a certain distance from the top/bottom/left/right as the window is resized.