import javafx.application.Application;
import javafx.scene.Group;
import javafx.scene.Scene;
import javafx.scene.text.Text;
import javafx.stage.Stage;

public class HelloText extends Application {

    @Override public void start(Stage stage) {
        stage.setTitle("Hello Text");

        Group root = new Group();
        Scene scene = new Scene(root, 600, 450);
        Text text = new Text("This is a Text");
        text.setLayoutX(5);
        text.setLayoutY(50);

        root.getChildren().add(text);
        stage.setScene(scene);
        stage.show();
    }

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        Application.launch(args);
    }
}
