Mixed runtime applications in JavaFX – embedding Ajax or Flash through JWebPane?

by Raju Bitter on May 24, 2009

RIA runtimes are getting more complex with every new technology available in the market. Building “pure Ajax” applications in many cases already means that you’ll embed a SWF movie file into your page for audio playback or video functionality. Technologies with support for multiple runtimes – like OpenLaszlo – create APIs for integrating applications deployed in different runtimes. In OpenLaszlo’s case that would for example be a video player or chat component deployed in an OpenLaszlo application utilizing the DHTML runtime, like in this example application of an Ajax MP3 player using a SWF runtime OpenLaszlo app for playback of the audio.

JavaFX is another technology that would be perfect for building mixed runtime applications. Imagine you want to re-use a widget you built in Ajax or Flash within JavaFX, with the ability to drag the application onto your desktop? Sun announced the JWebPane or HTML component last year, which effectively is a Webkit browser embedded into JavaFX. 

JavaFX JWebPane Demo from JavaONE 2008

JavaFX JWebPane Demo from JavaONE 2008

Artem Ananiev wrote a few blog posts on the technology in May/June  2008, but things have been relatively quiet for some time. In December Alexey Ushakov announced that he’s the new tech lead for the JWebPane project, and he’s going to demo the latest version of his work at JavaONE (BOF 3992 - Meet the Team Behind JWebPane, and Learn Advanced Tips and Tricks).

JWebPane will support the following features:

  • Loading control — load, stop, and reload functions.
  • Listeners handling. — typical function enabling a developer to get, add, and remove listeners.
  • JavaScript support

With JWebPane utilizing Webkit, that browser turns into something like the preferred solution for embedding a browser into 3rd party software – next to Adobe’s AIR technology. I wonder if we’ll see something like a standardized HTML component at some point for various RIA technologies. If a large number of applications and technologies require such a feature, it would make sense to standardize the way to embed HTML content based on iFrames or embedded browsers into RIAs.

Share:
  • Print this article!
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • StumbleUpon
  • E-mail this story to a friend!
  • Ping.fm
  • Twitter

Leave a Comment

You can use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Previous post: Thinkfree Office Mobile for Netbooks – a powerful alternative to Microsoft Office

Next post: Kabel Deutschland offers quadruple play in partnership with Telefonica/O2 Germany