If Swing is deprecated, what is the alternative?

后端 未结 6 1821
余生分开走
余生分开走 2021-02-18 16:42

I heard that apparently Swing is being developed no longer. I like Swing and use it all the time.

What should I now be using instead?

6条回答
  •  生来不讨喜
    2021-02-18 16:55

    Older question, but worth a reference:

    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.

    http://www.oracle.com/technetwork/java/javafx/overview/faq-1446554.html#6

提交回复
热议问题