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