import javafx.application.Application; import javafx.geometry.Pos; import javafx.scene.Scene; import javafx.scene.control.Hyperlink; import javafx.scene.layout.HBox; import javafx.scene.layout.Region; import javafx.stage.Stage; /** * * @author Alexander Kouznetsov */ public class BaselineTest extends Application{ @Override public void start(Stage primaryStage) { HBox hBox = new HBox(); hBox.setAlignment(Pos.BASELINE_LEFT); hBox.getChildren().setAll( new Hyperlink("Some link"), new Region()); Scene scene = new Scene(hBox, 500, 500); primaryStage.setScene(scene); primaryStage.setVisible(true); } public static void main(String[] args) { launch(args); } }