import sys from javafx.application import Application from javafx.scene import Group from javafx.scene import Scene from javafx.scene.layout import HBox from javafx.scene.control import Label from javafx.util import Callback class HelloApplication(Application): def start(self, stage): hbox = HBox() scene = Scene( hbox, 640, 480 ) hbox.getChildren().add( Label( "Hello, JavaFX World!" ) ) stage.setScene( scene ) stage.setTitle( "Hello, World" ) stage.show() if __name__ == "__main__": Application.launch(HelloApplication().class, sys.argv[1:])