for all new projects I would use JavaFX. With Java 8 it is official the recommended UI Toolkit for Java. If you have big applications that are implemented with Swing you can't simple change to JavaFX. In this case a migration is the best workflow. JavaFX supports Swing integration and migration: http://docs.oracle.com/javafx/2/swing/jfxpub-swing.htm
If the student wants to:
Build apps based upon the NetBeans platform, write plugins for Intellij Idea or enhance or work with an existing framework which is built in Swing:
=> learn Swing
Build new Java client applications which do not use any of the existing Swing frameworks:
=> learn JavaFX
sunuvabiatch. Google brought me here. I've almost got my first Swing program running, and now I find Swing is obsolete?
Java newbie here, 35 years programming experience. Should I learn JavaFX or stick with Swing? My ultimate goal is to target Android, for now I'm trying to learn the Java libraries.
I don't even know what netbeans nor intellij are......
It's a no-brainer. We just need to take it to the next level to turn this into a win-win situation. The best practice is to get rid of the low-hanging fruit first. Ping me with an agenda so we can go flag up on this thing
John Damien Smith
Joined: Jan 26, 2012
Jim, if your goal is only Android development, then learn that, not Swing or JavaFX. Swing apps won't run on Android (as far as I know). JavaFX apps might work on Android if you use JavaFX ports. Not many people currently develop Android applications with JavaFX, they usually develop them with the Android toolkit provided by Google or some other system such as Unity. I'd really only advise targeting JavaFX for Android development if you have quite a bit of experience in Java and JavaFX development.
Idea and NetBeans are integrated development environments for many languages and software frameworks.