Posted By

laurenceosx on 08/24/11


Tagged

javafx2groovy


Versions (?)

JavaFX2 Button Click with Groovy


 / Published in: Groovy
 

  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  

You need to login to post a comment.