August 11, 2008

Test Center preview: Sun JavaFX Preview SDK

Sun's new rich Internet application framework should be a hit with Java developers, but the promising preview trails Adobe Flex/AIR and Microsoft Silverlight

Sun Microsystems recently unveiled the first public beta of its JavaFX framework for RIAs (rich Internet applications). There's a lot to like about the new SDK. It's rich in capabilities, and its Java-like syntax makes it a good springboard to RIAs for Java developers. But even in Java shops, Sun and JavaFX are behind not just one eight ball but two. Heavyweight competitors Adobe and Microsoft, with Flex/AIR and Silverlight, respectively, offer RIA toolsets that are not only far more mature but also include tools that bridge the all-important gap between designers and coders.

The freely downloadable JavaFX Preview SDK bundles the JavaFX compiler and runtime, the NetBeans IDE, and a NetBeans plug-in for coding and debugging in the new JavaFX Script language. The IDE gives developers a decent palette of widgets for layout, animation, and input device listeners (the screen image also shows a running JavaFX application), and Sun has thoughtfully included a good number of coding samples and templates.

[ See the Test Center reviews of Adobe AIR 1.0, Adobe Flex Builder 3.0, and Microsoft Silverlight, as well as our special report on rich Internet application and AJAX toolkits. ]

The grammar and semantics of the new JavaFX Script, which is something of a Java/JavaScript hybrid, are not difficult to grasp, despite some minor quirks and gaps, such as the absence of Java interface support. JavaFX wowed me with great data-binding capabilities, a nice palletized library of widgets, and good features for programmatically directing 2-D keyframe animations. It also includes key support for vector-based objects and transparency, but a 3-D library and actual path-based animations are not yet in tow.

Java developers will no doubt find the declarative syntax to make for speedier UI development and, ultimately, more appealing interfaces than flat Swing calls. Interestingly, Sun has eschewed the XML-based abstraction favored by, well, every other major RIA vendor. Although I prefer XML for its clean interface declaration, there is something to be said for the less-verbose, code-centric approach taken in JavaFX.

To help sync design and development, Sun provides an Adobe Illustrator plug-in to export JavaFX assets, and one for Photoshop is on the way. But designers need to look to third-party upstart efforts, such as ReportMill's JFXBuilder, for even rudimentary visual layout tools. Adobe and Microsoft have gone further.

Compared to Adobe Flex and Microsoft Silverlight, JavaFX is also relatively inefficient. In my testing, a lot of code went into building even a simple app, and launching an application was slow going, requiring runtime and library downloads. JavaFX also burned though processor cycles; running even simplistic animations pushed my 3GHz Intel Core 2 Duo to 32 percent utilization.

Close

On Twitter now

Architecture

Powered by Twitter

On Twitter now

White Paper

D2D Virtual Tape Library Replication Primer

This whitepaper explains the terminology and concepts behind Data Replication technologies and establishes some sizing rules through worked examples. Learn the new paradigm in disaster tolerance—protect data anywhere.

Download now »

White Paper

An Alternative to Virtualization for Datacenter Cost Savings

Server virtualization is a popular option for dealing with mounting datacenter costs. Another equally promising approach is the use of an Application Delivery Controller. Citrix NetScaler provides a low-cost way for organizations to reduce their server count and accrue cost savings from a reduction in space, cooling, power and personnel.

Download now »

White Paper

Why Your Firewall, VPN, and IEEE 802.11i Aren't Enough to Protect Your Network

The emergence of WLANs has created a new breed of security threats to enterprise networks.

Included in HP ProCurve WLAN solutions is security technology that alleviates threats from WLANs through:
* Monitoring wireless activity inside and out of the enterprise
* Classifying WLAN transmissions into harmful and harmless
* Preventing transmissions that pose a security threat to the enterprise network
* Locating participating devices for physical remediation

Download now »

White Paper

Bringing the Edge to the Data Center

Effectively address data protection challenges, implementing solutions that help store and protect business–critical data while cutting costs and improving efficiency and reliability.

Download now »

Sign up to receive Architecture Resource Alerts

Subscribe to the Today's Headlines: First Look Newsletter

Find out what will be news for the day, with our first-thing-in-the-morning briefing.

©1994-2009 Infoworld, Inc.