Geertjan's Blog

  • April 19, 2012

JavaFX for Corporate Desktop Apps Too? (Not Just Games?)

Geertjan Wielenga
Product Manager

In the screenshot below, each chart comes from a different plugin and all of them (except the scatter chart, which I included just for fun) react in an animated way, i.e., the lines in the charts visibly move up and down, when data is changed in the Swing JTable:

All the charts you see above are JavaFX components. And all the rest is Swing.

Note: Click to enlarge the image to get a better view. Apologies for the large view being very grainy; that's because there's some bug with enlarged PNG files on blogs.oracle.com, so I had to do a GIF instead.

At least two things are illustrated here that you don't get from JavaFX. Firstly, the docking framework, i.e., each chart can be undocked from the main frame, even moved to a different monitor. Handy if you're a stock trader, air traffic controler, defence force specialist, and, oh probably, just about every user of a large app would find this handy. Secondly, pluggability. The end user (or you, as the provider of the app) can decide which charts should be included in the app. All you need to do is go to Tools | Plugins and install a new chart provider, which is an implementation of an interface made available by the app for registering new charts. 

But the main thing illustrated here is that you can pick the JavaFX goodies that seem relevant to your existing Swing app and simply disregard all the rest. (Or, move to the other parts step by step over a number of releases of your app, i.e., it's not an "all or nothing" thing.)

Join the discussion

Comments ( 8 )
  • guest Thursday, April 19, 2012

    Do you know if NB can support JavaFX 2.0 visual designer like mattis?

  • Tim Boudreau Thursday, April 19, 2012

    What I've been thinking since Oracle acquired Sun would be a truly sane course:

    - Put the NetBeans platform underneath JavaFX UIs in general

    - Deploy via WebStart

    - Replace all that monstrous gosh-awful that passes for a UI on those miserable business apps (such as the 3-slowww-roundtrips-to-move-focus-one-field things I was tortured with to do expense reports during the few months I was an Oracle employee)

    User expectations, even for captive-audience corporate applications are now being set by the user experience of mobile apps. People make money writing books on how you can bypass your company's (SAP, Oracle, etc.) infrastructure in order to be more effective at your job.

    It's not a question of gratuitous prettiness customers aren't asking for stright-up, it's a question of continued relevance.

  • Kristian Friday, April 20, 2012


    Is it possible to get a hold of the source code for this?

  • Dominique De Vito Friday, April 20, 2012

    Your post remind me that - like I wrote in http://www.jroller.com/dmdevito/entry/a_clearer_vision_about_thunderbird - server-side portals have failed IMHO:

    - in the Java world, for example, the portlet technology is heavy- weight and makes portal development a huge effort.

    - there is little interest for corporates to instantiate a server-side portal, which is expensive, while the need is simple: the data just go through the portal, which is quite brainless (there are already various standards and web API to request news sources directly from the client).

    - the other reason is that, implementing a portal, that is, such a windowing system on the server-side (!) is unnatural: it's not the right side.

    On the contrary, client-side portals look like the way to follow.

    So, I am glad JavaFX is providing more value on the client-side.

  • Shang Wednesday, May 2, 2012


    How do I put JavaFX project into Netbean platform?

    thank you very much

  • Argentum Online Sunday, May 6, 2012


    How do I put JavaFX in Eclipse?

    Is that possible?


  • Geertjan Sunday, May 6, 2012

    Ask someone who uses Eclipse, not me.

  • jhons Saturday, August 9, 2014

    Is it possible to get a hold of the source code for this?

Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.