JavaFX + xtend an ongoing love

So I’ve already blogged (here and here) about the prefect match between JavaFX and Xtend.

Now that those 2 got to know each other better their love grows even more because Xtend now has a with (=>) operator who frees you from writeing builder classes to create an object tree.

So one can now write my initial example like this:

Isn’t it wonderful if a couple is such a perfect match πŸ˜‰

The only small problem with the new with operator is that the editor is having difficulties providing sensible autocompletion but I’m sure it’s only a matter of time until the editor catches up (see bug 380537).

Give xtend a try – you’ll learn extremly fast how to use it if you know Java.

This entry was posted in e(fx)clipse. Bookmark the permalink.

2 Responses to JavaFX + xtend an ongoing love

  1. Cool! and thanks for the bug report, which Sebastian has already fixed yesterday πŸ™‚

  2. Pingback: JavaFX links of the week, June 4 // JavaFX News, Demos and Insight // FX Experience

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.