JavaFX2 Button Click with Groovy
Copy this code and paste it in your HTML
def doAction
( aClosure
) { // Example: button1.onAction = doAction( { println "click" } );
handle:
{ aClosure.
call(it
) } ] as javafx.
event.
EventHandler<javafx.
event.
ActionEvent>; }
Report this snippet
Comments
Subscribe to comments