package test.scenegraph.app; import javafx.application.Application; import javafx.scene.Cursor; import javafx.scene.Group; import javafx.scene.Scene; import javafx.scene.layout.VBox; import javafx.scene.shape.Circle; import javafx.stage.Stage; public class ShortAppWithoutDependencies5 extends Application { protected final static int width = 350; protected final static int height = 450; VBox vbox = new VBox(); public void start(Stage stage) { stage.setWidth(width); stage.setHeight(height); Group gr = new Group(); stage.setScene(new Scene(gr)); vbox = new VBox(); vbox.setStyle("-fx-border-color: grey"); gr.getChildren().add(vbox); stage.show(); setup(); } public void setup() { Circle c1 = new Circle(20); Circle c2 = new Circle(20); Circle c3 = new Circle(20); c1.setCursor(Cursor.OPEN_HAND); c2.setCursor(Cursor.CLOSED_HAND); c3.setCursor(Cursor.HAND); vbox.getChildren().add(c1); vbox.getChildren().add(c2); vbox.getChildren().add(c3); } public static void main(String[] args) { launch(ShortAppWithoutDependencies5.class, args); } }