List of usage examples for javafx.scene.control Button setRotate
public final void setRotate(double value)
From source file:Main.java
@Override public void start(Stage stage) { Button b1 = new Button("Close"); b1.setEffect(new DropShadow()); Button b3 = new Button("Close"); b3.setEffect(new DropShadow()); b3.setRotate(30); VBox root = new VBox(); root.getChildren().addAll(b1, b3);// w w w . j a v a 2 s . c om Scene scene = new Scene(root); stage.setScene(scene); stage.setTitle("Testing LayoutBounds"); stage.show(); System.out.println("b1=" + b1.getLayoutBounds()); System.out.println("b3=" + b3.getLayoutBounds()); }
From source file:Main.java
@Override public void start(Stage stage) { Button b1 = new Button("Close"); b1.setEffect(new DropShadow()); Button b2 = new Button("Close"); Button b3 = new Button("Close"); b3.setEffect(new DropShadow()); b3.setRotate(30); Button b4 = new Button("Close"); VBox root = new VBox(); root.getChildren().addAll(b1, b2, b3, b4); Scene scene = new Scene(root); stage.setScene(scene);/*from w w w .j a v a 2 s. com*/ stage.setTitle("Testing LayoutBounds"); stage.show(); }