📅  最后修改于: 2022-03-11 14:52:47.052000             🧑  作者: Mango
Label topLeftLabel = new Label("Top Left");
StackPane stack = new StackPane();
stack.getChildren().add(topLeftLabel);
StackPane.setAlignment(topLeftLabel, Pos.TOP_LEFT);