package hellofx; import javafx.application.Application; import javafx.scene.Scene; import javafx.scene.control.Button; import javafx.scene.layout.StackPane; import javafx.stage.Stage; public class GUI003 extends Application { @Override public void start(Stage stg1) throws Exception { StackPane pn = new StackPane(); pn.getChildren().add(new Button("Niceee!")); // because Nice! would sound rude Scene scn = new Scene(pn, 300, 100); stg1.setScene(scn); stg1.show(); } public static void main(String[] args) { Application.launch(args); } }