in JavaFX you do this:

Button {
        action: function() {
                println("I'm doing stuff. Honest!");
        }
}

the function above is actually a closure. You could also do this:

function doStuff():Void {
        println("I'm really doing stuff this time");
}

Button { action: doStuff }

c'est facile!

On Sep 16, 2009, at 4:37 AM, Reinier Zwitserloot wrote:

>
> So, after listening to #278 (What do you want from JavaFX?), I'm
> curious: How exactly do you 'just register' a listener and forget
> about it? In what way is this different from the java experience. If
> anyone could put some examples of either C# or delphi source here,
> that'd be great.
> >


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "The 
Java Posse" group.
To post to this group, send email to javaposse@googlegroups.com
To unsubscribe from this group, send email to 
javaposse+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/javaposse?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to