国产chinesehdxxxx野外,国产av无码专区亚洲av琪琪,播放男人添女人下边视频,成人国产精品一区二区免费看,chinese丰满人妻videos

App下載
首頁(yè)javanodeJavaFX - 如何獲取Node有界值

JavaFX - 如何獲取Node有界值

我們想知道如何獲取Node有界值。
import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.layout.VBox;
import javafx.stage.Stage;

public class Main extends Application {
    public static void main(String[] args) {
        Application.launch(args);
    }

    @Override
    public void start(Stage stage) {
        Button b1 = new Button("Close");
    
        VBox root = new VBox();
        root.getChildren().addAll(b1);

        Scene scene = new Scene(root);
        stage.setScene(scene);
        stage.setTitle("");
        stage.show();
        
        System.out.println("b1(layoutBounds)=" + b1.getLayoutBounds());
        System.out.println("b1(boundsInLocal)=" + b1.getBoundsInLocal());       
    }
}