In addition to what others already mentioned, if you could place your button (or any node for that matter) inside a StackPane, then you could make use of the StackPane's alignment property that takes javafx.geometry.Pos (the alignment of the child within the StackPane). For example in your case: