The key difference between Swing vs. JavaFX is that JavaFX is an actively maintained Java project that supports the development of modern, feature-rich GUI applications, while Swing is an older ...
With each new Java platform release, the stewards of the language always include a few new preview features that can be toyed with only if a developer knows how to unlock the capabilities at runtime.