ich Internet Application or RIAs are all the rage in application development circles now. How do you make web applications behave like more traditional desktop applications? You remember desktop applications don't you? Harken back to the days of drag-and-drop, slide bars, dynamic widget enabling, disabling, background coloring, etc.all to make the user experience more pleasing without the "flash-bang," slow-performing Web page refreshes. Those were some user interfaces!
AJAX is the technology most often used today to provide RIAs that present the closest thing to desktop applications offered over the Web. AJAX has been a part of a new Web revolution,heralded as Web 2.0. The unfortunate aspect of AJAX is its dependency on the platform. Namely, if you have ever written an AJAX application for mass distribution, much of the application code is littered with "if Microsoft IE do...if Mozilla or other browser do..." conditionals. Efforts by the W3C and others to standardize AJAX technologies are helping, but they may not be enough when you're also considering needs to bring more dynamic applications to other platforms like mobile and consumer devices.
This article introduces you to the new JavaFX Script language. I point you to some JavaFX syntax and API tutorials and take you through some of the interesting characteristics that might make JavaFX appealing. It is a technology still in its infancy, but if you are thinking RIA long term, it's a technology worthy of inspection. Why? As the JavaFX FAQ states:
|"JavaFX Script will enable developers to more quickly and easily develop RIAs and next-generation services that can be proliferated across virtually any devicefrom desktop browsers and mobile devices, to set-top boxes and Blu-ray Disc DVDssecurely and without local installation."
Java is the dominant application platform on handsets. Marry that lead, the "write once, run anywhere" mantra, and the need for RIA, and you start to understand why Sun is pushing hard to establish JavaFX as a powerful development technology. Sun wants to keep and expand Java deployments and JavaFX is a means to that goal.
A recent (July 2007) podcast given by Jacob Lehrbaum, Sun's JavaFX Mobile product line manager, suggest that Sun will be working with device vendors this fall in order to bring JavaFX Mobile-capable devices to market in 2008. Even development tools are still a few months off. In the podcast, he says "I think it's a little bit early to start working with [JavaFX Mobile] as we are still defining the platform and building out some of those capabilities." He recommends getting familiar with JavaFX Script via OpenJFX (more below) and NetBeans plugins as a means to get ready for this new mobile device capability.