List of usage examples for javafx.scene.control Button getBoundsInLocal
public final Bounds getBoundsInLocal()
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()); }