Yakov Fain, a fellow Java Champion and Managing Director of Farata Systems, has wondered publicly what many other developers and IT decision-makers are privately wondering: If I may paraphrase, the question is: "Can JavaFX be used for development of applications that real-world software developers can relate to?" To quote Yakov's article referenced above, "Enough of the demos of bubbles moving up and down in a glass with water. Can’t recall any application in my rather long career that would require to program something like this." In this article, Yakov indicated that he has started looking into JavaFX and plans to publish a couple of articles (in Java Developer's Journal) going through development of an application that real-world software developers can relate to.
Yakov gave similar feedback to a blog post that I wrote to demonstrate JavaFX data binding, in which I used a slider to control the diameter of a circle. I was very grateful for this feedback, which helped focus my attention on perhaps the most important criterion for widespread adoption of JavaFX: its ability to be used for developing rich user interfaces for real enterprise systems.
As a result, I recently began creating a "proof of concept" application to prove this capability. This application will have a rich-client user interface that communicates with Amazon web services. Many of you know that I don't have the graphics gene, so I asked someone that does (Casper Hamlet) to create some graphic comps in Adobe Photoshop. I then used the JavaFX Production Suite to export the layers directly into a NetBeans project, where Dean Iverson and I began developing that application. Yesterday at the Jfocus Java Conference in Stockholm I demonstrated the JavaFX Production Suite and the humble beginnings of this proof of concept. The screenshot above shows its capability so far, which is to cause brief info about JavaFX books to be transformed in various ways as they revolve in and out of view (when the right and left icons are clicked). Also, when the Details button is clicked, more information about a book is displayed in the details area, which includes a scrollable area. Currently, the book data is represented only in the model classes, but we plan to communicate with the Amazon web services shortly. You can try the existing functionality out by clicking on the Web Start link below.
Shown below is the original graphic comp for this screen. I obviously have some more work to do on this page to make it match the comp, particularly in the scrolling table:
Here is as a screnshot taken of NetBeans rendering the FXZ file that was exported from Photoshop after tagging the layers that I wanted and deleting the rest:
Please join me in watching for Yakov Fain's JavaFX articles in JDJ. It has been encouraging to see interest increase in JavaFX among those that I hold in high regard in the Java community.
As always, please leave a comment if you have any questions,
Jim Weaver
JavaFXpert.com
I hear about JavaFX use in desktop, mobile and TV.
Most web and enterprise applications use a browser to communicate with clients.
Can JavaFX run in a browser? Ant I eliminate applets, since they are not acceptable in web and enterprise applications for security concerns?
Vitaly
Posted by: Vitaly | July 09, 2009 at 10:45 AM
Hi,
I hear that JavaFX can be run on desktop, mobile devices, TV boxes.
Most web and enterprise applications use a browser to communate with clients. Can JavaFX run in a broswer? And I eliminate applets, since they are not acceptable in web and enterprise applications.
Vitaly
Posted by: Vitaly | July 09, 2009 at 10:19 AM
Can i get the source code for the which u created and can send me to my mail id
Posted by: phanindhar | March 24, 2009 at 02:34 PM
"Is it possible to have a javafx web start app resize when the window is resized so that the contents fit the window? I'm pretty sure I've seen it with plain old webstart apps."
Yes, this is very possible. The top level UI container (Stage) has width and height instance variables to which you can bind. Regarding applets, it's possible as well, the main trich being to rewrite the HTML so that the browser carves out a different amount of space for the applet.
Thanks,
Jim Weaver
Posted by: Jim Weaver | February 10, 2009 at 03:12 PM