Michael Heinrichs

About Michael Heinrichs

Java, Android, JavaFX developer. Interested in agile management and public speaking. Loves his family and cooking.

Most often asked questions about JavaFX

Last week I did a talk about JavaFX at Jfokus 2012 in Stockholm, when I realized that there are three questions I am asked at every event. There seems to be a general interest, so I try to answer them in this post (as much as I can to be honest):

  • What about JavaFX on the iPad or other mobile devices?
  • Is Swing dead now?
  • How do I migrate my Swing application?

Jfokus is definitely one of the top Java conferences in Europe. There is a nice trip report from Arun Gupta and another trip report form Markus Eisele. There were many great moments and I enjoyed the conference a lot, but the one thing I liked the most was the fact that I actually helped a good cause. Speakers sometimes get little presents from the conference organizers, but the awesome Jfokus team had a better idea. Instead of a present, they donated a package of 30 doses of measles vaccine and 40 doses of polio vaccine to Unicef for every speaker. What a great idea, I hope it finds lots of copycats!
After my JavaFX talk, I got a lot of interesting questions and I realized a pattern, because there are three question, that I am always asked. They are pretty tough questions and I cannot answer them as much as I would like, but I will do my best.

What about JavaFX on the iPad or other mobile devices?

I am sorry, but I am not allowed to comment.
As much as I would like to answer this question, I am not allowed to. You can believe me, this really bugs me, especially since I hear time after time how important (and cool) JavaFX on these devices would be. All I can say is, that we presented prototypes of JavaFX on different tablets at JavaOne last year and asked, if this is something the community wants. The feedback was overwhelming. We continue to look into this, but for now I can only humbly ask you for your patience.

Is Swing dead now?

No, but…
Swing is not dead. And as the JavaFX FAQs say: “Swing will remain part of the Java SE specification for the foreseeable future, and is included in the JRE”. – But it is in maintenance mode now, no new features are being developed at this point. So if you want to use the new and cool stuff that was developed for JavaFX, you have to migrate to JavaFX or embed JavaFX in your Swing application. Which leads me directly to the last question.

How do I migrate my Swing application?

Honestly? I do not know.
I do not have an answer for this question yet. As a library developer, I do not write JavaFX applications. The only time I actually use the JavaFX runtime, is when I write small scripts to reproduce a bug or in my unit tests.
So for a start, here is what I am aware of. There is a tutorial about how to integrate JavaFX into a Swing application. I know there are efforts going on to build a JavaFX RCPs (Rich Client Platforms) on top of NetBeans and Eclipse although I do not know much about these projects. They may help, if your application was build on top of the NetBeans or the Eclipse platform. And on our mail alias, there is currently an interesting debate about an application framework for JavaFX going on, that you are welcome to join (openjfx-dev@openjdk.java.net).

This is certainly just a start, but at least I became (finally… :-) ) aware of this question and I hereby promise, that I will do my homework and try to find better answers.

Reference: Most often asked questions about JavaFX from our JCG partner Michael Heinrichs at the Mike’s Blog.

Related Whitepaper:

Java Essential Training

Author David Gassner explores Java SE (Standard Edition), the language used to build mobile apps for Android devices, enterprise server applications, and more!

The course demonstrates how to install both Java and the Eclipse IDE and dives into the particulars of programming. The course also explains the fundamentals of Java, from creating simple variables, assigning values, and declaring methods to working with strings, arrays, and subclasses; reading and writing to text files; and implementing object oriented programming concepts. Exercise files are included with the course.

Get it Now!  

Leave a Reply

7 − two =

Java Code Geeks and all content copyright © 2010-2014, Exelixis Media Ltd | Terms of Use | Privacy Policy
All trademarks and registered trademarks appearing on Java Code Geeks are the property of their respective owners.
Java is a trademark or registered trademark of Oracle Corporation in the United States and other countries.
Java Code Geeks is not connected to Oracle Corporation and is not sponsored by Oracle Corporation.

Sign up for our Newsletter

20,709 insiders are already enjoying weekly updates and complimentary whitepapers! Join them now to gain exclusive access to the latest news in the Java world, as well as insights about Android, Scala, Groovy and other related technologies.

As an extra bonus, by joining you will get our brand new e-books, published by Java Code Geeks and their JCG partners for your reading pleasure! Enter your info and stay on top of things,

  • Fresh trends
  • Cases and examples
  • Research and insights
  • Two complimentary e-books