import javafx.application.Application; import javafx.stage.Stage; import javafx.scene.Scene; import javafx.scene.layout.HBox; import javafx.scene.control.Label; public class Hello extends Application { public static void main(String[] args) { Application.launch(Hello.class, args); } @Override public void start(Stage stage) { HBox hbox = new HBox(); Scene scene = new Scene(hbox, 640, 480); hbox.getChildren().add( new Label("Hello, JavaFX World!") ); stage.setScene(scene); stage.setTitle("Hello, World"); stage.show(); } }