JavaFX is the latest generation of libraries for creating high-quality graphical user interfaces for Java desktop, mobile, and web applications. Introduced with Java 8 in March 2014, it became the official GUI library for Java. Its predecessor, Swing, is no longer actively developed (except for bug fixes).
To use it, we have to install Scene Builder, it’s an interactive GUI design tool for JavaFX, created by Oracle. It allows developers to quickly build user interfaces without writing code. You can download here