Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Does JavaFX make Swing largely obsolete?

 
Marc Laffan
Greenhorn
Posts: 26
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi folks!

I've read up a bit on JavaFX and it seems as though it is meant to provide an alternative/successor to Swing, much like how Swing is an alternative/successor to AWT.

Is there any point to swing now, since JavaFX is included in Java 8?

I can see it being useful for applications that were originally built with Swing, but for a new project is there any reason to pick Swing over JavaFX?
 
Greg Charles
Sheriff
Posts: 3002
12
Firefox Browser IntelliJ IDE Java Mac Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JavaFX FAQ wrote:
6. Is JavaFX replacing Swing as the new client UI library for Java SE?
Yes. However, Swing will remain part of the Java SE specification for the foreseeable future, and therefore included in the JRE. While we recommend developers to leverage JavaFX APIs as much as possible when building new applications, it is possible to extend a Swing application with JavaFX, allowing for a smoother transition.

JavaFX FAQ
 
Claude Moore
Ranch Hand
Posts: 829
7
IBM DB2 Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Java FX would have been much more interesting if it were available as client UI library for smartphones and tablets., in my humble opinion. Despite the fact I am by far much more comfortable with desktop applications, I would suggest you to check if it isn't better to use web interfaces for a new project.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic