@@ -0,0 +1,867 @@
+import javafx.application.Application;%0Aimport javafx.event.ActionEvent;%0Aimport javafx.event.EventHandler;%0Aimport javafx.scene.Scene;%0Aimport javafx.scene.control.TextField;%0Aimport javafx.scene.layout.StackPane;%0Aimport javafx.stage.Stage;%0A%0Apublic class ControlTextFieldGetText extends Application %7B%0A%0A    public void start(Stage stage) %7B%0A        TextField text = new TextField();%0A        text.setText(%22Hello%22);%0A%0A        text.setOnAction(new EventHandler%3CActionEvent%3E() %7B%0A            public void handle(ActionEvent event) %7B%0A                System.out.println(text.getText());%0A            %7D%0A        %7D);%0A%0A        StackPane root = new StackPane();%0A        root.getChildren().add(text);%0A%0A        Scene scene = new Scene(root, 300, 200);%0A%0A        stage.setScene(scene);%0A        stage.show();%0A    %7D%0A%0A    public static void main(String %5B%5D args) %7B%0A        launch(args);%0A    %7D%0A%0A%7D%0A

Add a snippet.