If Swing is deprecated, what is the alternative?

后端 未结 6 1838
余生分开走
余生分开走 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:54

    You probably read something about the 'Swing Application Framework', which while built using Swing, is not 'Swing'.


    From Swing Application Framework - Status and Roadmap.

    Development on an open source Reference Implementation called appframework was begun in 2006.[1] It was originally expected that this implementation would be the means for integrating JSR 296 into the upcoming Java SE 7 (Dolphin) version of the Java programming language, and the project was scheduled to be included in milestone 5 of the JDK7 development. However, in August 2009, it was announced that the project would not be included due to an inability to reconcile design flaws and achieve consensus among the JSR 296 team before the milestone 5 deadline.[2]

    The original Swing Application Framework implementation has been put on hold indefinitely.[3] The last public release of the appframework project is version 1.03.[1]

    0 讨论(0)
  • 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

    0 讨论(0)
  • 2021-02-18 16:56

    I never heard such thing and still developing swing apps. Don't give wings to rumors. But as an alternative you can use JavaFx or swt or buoy.

    0 讨论(0)
  • 2021-02-18 17:04

    There is nothing wrong with swing. Personally i don't like SWT. You have to read input-values from widgets and store them in normal variables before a dialog is disposed.

    0 讨论(0)
  • 2021-02-18 17:06

    Jan 2019 Latest

    For reference, AWT & Swing have been moved to java.desktop since Java SE 9. You can watch for future changes here. JavaFX (added to JDK since 8) was removed from the official JDK in Java 11. So its hard to say what is "official" anymore. However JavaFX's development has increased since the decoupling, with its new home here.

    0 讨论(0)
  • 2021-02-18 17:06

    The Standard Widget Toolkit.

    0 讨论(0)
提交回复
热议问题