"Java" cannot choose. Oracle has chosen, and they dropped JavaFX (well, they also don't allocate much to Swing either...well, they basically dropped Java now that their lawsuit against Google is through).
Swing is great, because it comes with the JDK, offers a lot of functionality and extendability and with LaFs also offers enough styling options.
JavaFX requires bundling, including native libraries (do we still need different packages per platform?), but offers more options if you require effects or 3D and offers easy styling. But its feature set is not so rich. The extendability of the default components is also questionable.
When JavaFX was added to the JDK it looked like it would actually be able to replace Swing. Then it was ripped out, and since then it kinda drifts. Swing is going nowhere, neither are the big applications that build on top of it.
0
u/[deleted] Nov 01 '20
[deleted]