BT

Sun Releases Early Access Version of RAD Tool for JavaFX

by Charles Humble on Jan 06, 2010 |

Sun is working on two RAD tools for JavaFX - one targeted at web developers and page content authors, and the other aimed more at Java developers. A preview version of the latter tool, tentatively called "JavaFX Composer" is now available for download from the NetBeans 6.8 update centre.

"We're not even calling this a beta - we're calling it an 'early access' or preview", said Sun's director of Developer Tools Engineering, David Folk, during a conference call. "What this tool is really about is enabling you to develop form-based applications with JavaFX."

The basic idea behind the new JavaFX tool is similar to Project Matisse for Swing, which simplified Swing development by providing a visual editor much like those found in Visual Basic or Delphi. As with Matisse, which became the NetBeans GUI builder when NetBeans 5 shipped, JavaFX Composer generates code as you work and, whilst you can view the generated source code, it frustratingly cannot be modified.

As you add JavaFX components from the palette to the design area you can bind them to a data source. The plug-in currently supports JDBC, HTTP (XML / JSON), FileSystem and File data sources, as well as nested Filters. The plug-in has some simple converters so you can readily bind say a REST or JSON data source to a list component.

As well as simply dragging and dropping components the plug-in has a concept of "states". Starting from an initial master state, you can add new states making changes to the visual components and/or their layouts. When your application runs, events such as a button click can trigger state changes that automatically get reflected in your UI as you defined it. Each transition can be tied to a simple animation allowing you to quickly build a GUI with zoom, fade and rotation effects..

The tool has a number of other useful features available such as profiles (which allow you to preview your application at different screen sizes for different devices such as desktop, mobile, and HDTV), and pre-defined templates for quickly building common GUI patterns such as Wizard (cancel, back, next, finish) and Index (previous, next) buttons which you can add and customise.

As you'd expect with an early access version there are a number of limitations with the tool. For example a number of key components such as the charts that were added to JavaFX 1.2 are not yet supported through the visual designer, some properties of the components that have been included cannot yet be edited visually, and the preview panel occasionally seems to "stick" and not be able to provide previews until the IDE is restarted. Nevertheless an afternoon spent playing with the tool is an enjoyable way to find out what JavaFX can do.

As well as much needed tooling, JavaFX needs some high profile applications if it is to gain more transaction. Early adopters of the platform include Ubivent, whose virtual event platform is entirely based on JavaFX, and WhiteStone Technology, who use JavaFX in the Workflow component of their Consolidated Service Desk and IT Service Management product. Perhaps of most significance to JavaFX's profile however is that the 2010 Winter Olympics, whose Organizing Committee is a major Sun customer, features a JavaFX based medal visualiser application on its website.

Hello stranger!

You need to Register an InfoQ account or to post comments. But there's so much more behind being registered.

Get the most out of the InfoQ experience.

Tell us what you think

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

How sad by Vic _

.... ahh... is this a good thing for Sun to spend $ on?

Scala + Eclipse SWT is somewhat interesting if you must do java runtime, but jre is a memory hog and very hard for end users to deploy, relative to top players (actionscript, sliverlight, unity, etc.).
You'd code something that no end user would ever see.

Sad by Vic _

.... ahh... is this a good thing for Sun to spend $ on?

Scala + Eclipse SWT is somewhat interesting if you must do java runtime, but jre is a memory hog and very hard for end users to deploy, relative to top players (actionscript, sliverlight, unity, etc.). Or event QT and Lazarus.
You'd code something that no end user would ever see.

Take a try by zaixiang wang

Still missing:
# User defined Conctrol support
# General Property Editor, such as font, fill, effect etc

The most things i want is the source code of JavaFX, not the compiler, but the runtime, the library. Without the runtime source, It is difficult to learn JavaFX, what is inside it?

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

3 Discuss

Educational Content

General Feedback
Bugs
Advertising
Editorial
InfoQ.com and all content copyright © 2006-2013 C4Media Inc. InfoQ.com hosted at Contegix, the best ISP we've ever worked with.
Privacy policy
BT