Example usage for javafx.scene.control Button getBoundsInLocal

List of usage examples for javafx.scene.control Button getBoundsInLocal

Introduction

In this page you can find the example usage for javafx.scene.control Button getBoundsInLocal.

Prototype

public final Bounds getBoundsInLocal() 

Source Link

Usage

From source file:Main.java

@Override
public void start(Stage stage) {
    Button b1 = new Button("Close");

    VBox root = new VBox();
    root.getChildren().addAll(b1);/*  w  w  w.  j a v  a 2 s.co  m*/

    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());
}