I am new to Java and trying to learn more about it. I studied the documentation and found the following for Java,
Java Docs
Are the packages listed here the same
In Java 9+, javafx
replaces javax
as the main UI library:
- 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.
JavaFX FAQ - Oracle.