import javafx.application.Application; import javafx.scene.Scene; import javafx.scene.control.Label; import javafx.scene.layout.HBox; import javafx.scene.text.Font; import javafx.scene.text.FontPosture; import javafx.scene.text.FontWeight; import javafx.stage.Stage; public class Main extends Application { public static void main(String[] args) { launch(args); } @Override public void start(final Stage stage) { HBox root = new HBox(); final Scene scene = new Scene(root); stage.setWidth(600); stage.setHeight(200); stage.setScene(scene); final Label title = new Label(); { title.setText("This feels like Alice in Wonderland"); title.setFont(Font.font("Tahoma", FontWeight.NORMAL, FontPosture.REGULAR, 35f)); } root.getChildren().addAll(title); stage.setVisible(true); } }