JavaFX2 Button Click with Groovy


/ Published in: Groovy
Save to your folder(s)



Copy this code and paste it in your HTML
  1. def doAction( aClosure ) {
  2. // Example: button1.onAction = doAction( { println "click" } );
  3. handle: { aClosure.call(it) }
  4. ] as javafx.event.EventHandler<javafx.event.ActionEvent>;
  5. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.