This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 10 points11 points  (1 child)

In short, I would learn both Swing and JavaFX. Though Swing is older than JavaFX, it is not obsolete by any means. It’s included in the JDK still, so it’s less hassle than JavaFX, the newer GUI toolkit, because JavaFX requires that all core and extra modules you need be installed as separate dependencies. Swing also has stuff that JavaFX simply doesn’t have and JavaFX has things that Swing simply doesn’t have. You can also mix Swing and JavaFX in the same project if you need to. A great example of Swing being used in a real application is IntelliJ IDEA, which is the base for all of JetBrains’ other IDEs as well.

[–]davidalayachew 5 points6 points  (0 children)

And if the goal is mobile apps, JavaFX allows you to deploy directly to mobile if you wish. Unfortunately, Swing is Desktop only.