@@ -0,0 +1,792 @@
+import javafx.application.Application;%0Aimport javafx.event.ActionEvent;%0Aimport javafx.event.EventHandler;%0Aimport javafx.scene.Scene;%0Aimport javafx.scene.control.Button;%0Aimport javafx.stage.Stage;%0A%0Apublic class ControlButtonActionEvent extends Application %7B%0A%0A    public void start(Stage stage) %7B%0A        Button btn = new Button(%22Hello%22);%0A%0A        //// or:%0A        //Button btn = new Button();%0A        //btn.setText(%22Hello%22);%0A%0A        btn.setOnAction(new EventHandler%3CActionEvent%3E() %7B%0A            public void handle(ActionEvent event) %7B%0A                System.out.println(%22Hello%22);%0A            %7D%0A        %7D);%0A%0A        Scene scene = new Scene(btn, 100, 50);%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.