import javafx.application.Application; import javafx.scene.*; import javafx.scene.control.*; import javafx.stage.Stage; public class RT21563_Button extends Application { @Override public void start(Stage primaryStage) { Group rootGroup = new Group(); Scene scene = new Scene(rootGroup, 300, 600); Stage stage = new Stage(); stage.setScene(scene); stage.show(); rootGroup.getChildren().add(new Button("Button")); //stage.show(); } public static void main(String[] args) { Application.launch(RT21563_Button.class, args); } }