package test.scenegraph.app; import javafx.application.Application; import javafx.geometry.Pos; import javafx.scene.Scene; import javafx.scene.control.Button; import javafx.scene.layout.Pane; import javafx.stage.Stage; import javafx.scene.layout.HBox; import javafx.scene.shape.Circle; import javafx.scene.text.Font; public class ShortAppWithoutDependencies5111 extends Application { @Override public void start(Stage stage) { Pane p = new Pane(); Scene scene = new Scene(p); stage.setScene(scene); stage.setWidth(500); stage.setHeight(500); HBox h = new HBox(); p.getChildren().add(h); h.setTranslateX(20); h.setTranslateY(20); h.setPrefSize(300, 100); h.setStyle("-fx-border-color: blue"); h.setAlignment(Pos.BASELINE_CENTER); Button b1 = new Button("btn"); b1.setFont(new Font(14)); h.getChildren().add(b1); h.getChildren().add(new Circle(10)); h.getChildren().add(new Circle(30)); stage.setVisible(true); } public static void main(String args[]) { Application.launch(ShortAppWithoutDependencies5111.class, args); } }