InfoQ

InfoQ

News

My Bookmarks

Login or Register to enable bookmarks for unlimited time.

The content has been bookmarked!

There was an error bookmarking this content! Please retry.

Sun Releases Early Access Version of RAD Tool for JavaFX

Posted by Charles Humble on Jan 06, 2010

Sections
Development
Topics
Java ,
Tools ,
Rich Internet Apps
Tags
JavaFX Mobile ,
JavaFX Script

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.

How sad by Vic _ Posted
Sad by Vic _ Posted
Take a try by zaixiang wang Posted
  1. Back to top

    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.

  2. Back to top

    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.

  3. Back to top

    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?

Educational Content

New-age Transactional Systems - Not Your Grandpa's OLTP

John Hugg discusses high volume transaction processing applications with high and low frequency profiles, and how VoltDB can be used for that purpose.

Cool Code

Kevlin Henney examines code samples to see what can be learned from them starting from the premise that one won’t write great code unless he knows how to read it.

Collaboration: At the Extremities of Extreme

Jason Ayers share the observations he made watching a team of developers collaborating in real time on the same code base, pushing XP, pair programming and continuous integration to their extremes.

Yesod Web Framework

Michael Snoyman presents Yesod, a web framework written in Haskell and containing a web server, templating, ORM, libraries (templating, gravatar, etc.).

Transactions without Transactions

Richard Kreuter and Kyle Banker on how to avoid classical RDBMS transactional systems by using compensation mechanisms, transactional messaging or transactional procedures.

Attila Szegedi on JVM and GC Performance Tuning at Twitter

Attila Szegedi talks about performance tuning Java and Scala programs at Twitter: how to approach GC problems, the importance of asynchronous I/O, when to use MySQL/Cassandra/Redis, and much more.

10 tips on how to prevent business value risk

One category of risk that project teams need to ensure they address is business value failure – delivering a product that fails to provide value for the business investor.

Interview: Software Systems Architecture: Working With Stakeholders Using Viewpoints and Perspectives

InfoQ spoke to the authors of Software Systems Architecture on a couple of new topics, the System Context viewpoint and Agile, which have been added to the second edition.