📜  javafx stackpane 设置位置 - Java 代码示例

📅  最后修改于: 2022-03-11 14:52:47.052000             🧑  作者: Mango

代码示例1
Label topLeftLabel = new Label("Top Left");
StackPane stack = new StackPane();
stack.getChildren().add(topLeftLabel);

StackPane.setAlignment(topLeftLabel, Pos.TOP_LEFT);