JavaFX is a software platform for creating and delivering desktop applications. Other than JavaFX, there is Swing. Swing is fully supported by Oracle and all compatible Java run-time suppliers. This is not surprising, as most Java IDEs are written using Swing. Swing has an extremely useful ability to display controls using styles based on native user interfaces. This means a Swing Windows application looks like Windows, and a Swing MacOS application looks like MacOS.
Swing support is never going away, as there is too much use of it, and its still being used for major projects.
I heard that Swing is always been much less buggy and much faster than JavaFX, especially on Linux.
There is also Electron - a free and open-source software framework developed and maintained by GitHub. I think for now this is the most popular framework because it's so easy to build cross-platform apps