<< Previous | Home | Next >>

JavaFX 2.0 Is Fun

I will be doing a JavaFX 2.0 presentation tomorrow at the St. Louis Java Users Group. As part of the preparation I wanted to deploy a JavaFX 2.0 applet to the world. I have picked the Lissajous curve example to show off the JavaFX 2.0's Path API and the properties and bindings framework.

You can access the page through this link. It works only on Windows XP SP3 running 32-bit browsers, and Windows Vista or Windows 7 running 32-bit or 64-bit browsers. Here's a screenshot of the example running as Java Webstart:

Lissajous curve example

The screen design is inspired by Brian Coyner's Core Animation Fun House that he presented at the West St. Louis CocoaHeads. Thanks Brian.

The JavaFX code took a couple of hours to finish. The source code can be found here.

I hope to see you tomorrow at the JUG. Well, it's close to midnight here. So if you read this blog entry tomorrow, (by the time you read it tomorrow, tomorrow would have become today) I hope to see you today.

Tags :

The OpenJDK Community Approves OpenJFX Project

(Via Mark Reinhold on Twitter.)

Iris Clark on the OpenJDK announce mailing list:
Voting on the OpenJFX Project with initial Lead Richard Bair [1] is now closed.

Yes: 12
Veto: 0
Abstain: 0

According to the Bylaws definition of Lazy Consensus, this is sufficient
To approve the new Project and its initial Lead.

Iris Clark

[1] http://mail.openjdk.java.net/pipermail/announce/2011-November/000113.html
Tags :

If You Love Web Programming, Root For Dart

It's interesting to watch the debate between Brendan Eich and Google over the merits of Google's Dart programming language.

Brendan Eich: Don’t kid yourself. Google is not just trying to “advance the web”. Putting things in Chrome that have no standard spec in progress and none in sight, pulling Chrome-only (not just “works best in Chrome”) marketing stunts, paying app developers to do Chrome-only versions, paying for opt-out bundling of Chrome (with default browser opt-out to boot, recently killed by Microsoft when the Skype deal closed). These are intentional acts.

Brendan made it sound like the big bad Google is out to break the web. Somehow I don't believe it. Why would they want to do that? And Brendan's vehement opposition to Dart (something I heard mentioned on the Twitter but never paid attention) prompted me to seek out information about it. And what do I find? This:

Improving the DOM, written by Bob Nystrom: Here's some code:

// Old:
elem.addEventListener('click',
    (event) => print('click!'), false);

elem.removeEventListener(
    'click', listener);
// New:
elem.on.click.add(
    (event) => print('click!'));

elem.on.click.remove(listener);

As much as I hate web programming, I have to say that the new way of doing things feels better than the old. I can't imagine lovers of web programming would oppose such an improvement to the web programming landscape.

Brendan's argument against Dart is a political one: Dart is bad because Google will be putting it unilaterally into their own Chrome browser and they are not even trying to submit it as a standard. And even if they did, other browser vendors won't implement it, therefore Dart is a dead-end.

But isn't the crown jewel of web programming, the venerable XmlHttpRequest (aka Ajax) a proprietary mechanism unilaterally put into their own Internet Explorer browser by the big bad Microsoft?

Even Mozilla's own Firefox, contains plenty proprietary (although open source) tools that they are not intending to standardize, like XUL, that no one uses on the web.

I don't know if Dart will win at the end. But even if it loses, it deserves your support now, if only to put pressure on the JavaScript vendors to make improvements in a more rapid pace.