package test; import javafx.application.Application; import javafx.application.Platform; import javafx.scene.Scene; import javafx.scene.control.Label; import javafx.scene.layout.StackPane; import javafx.stage.Stage; public class DockTest extends Application { public static void main(String[] args) { launch(args); } @Override public void start(Stage stage) { Platform.setImplicitExit(false); Label hw = new Label("Hello World"); StackPane root = new StackPane(); root.getChildren().addAll(hw); stage.setScene(new Scene(root, 200, 100)); stage.show(); } }