3

I am used to Swing programming and have heard about JavaFX. Is it supposed to replace Swing as the preferred platform for writing desktop applications in Java?

To put it in another way, should I choose JavaFX for my new project?

Andrew Thompson
  • 168,117
  • 40
  • 217
  • 433

1 Answers1

3

Yes JavaFX is replacing Swing.

See also official documentation of Oracle:

http://www.oracle.com/technetwork/java/javafx/overview/faq-1446554.html#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.

See also SO posts:

Community
  • 1
  • 1
venergiac
  • 7,469
  • 2
  • 48
  • 70