How to implement a GUI in Java? Is it only through javax.swing?

  • I'm using JavaFX - Vlad Vetrov
  • one
    already everything on JavaFX passed most likely. it is more convenient because you can connect a sceneBuilder and build visually forms, as in delphi and other window applications. - Alexey Shimansky

1 answer 1

For Java, several frameworks have been created to create a graphical user interface . Here are the most famous:

  • Abstract Window Toolkit (AWT) - the very first framework
  • Swing - a framework created in 1998 and replacing AWT
  • Standard Widget Toolkit (SWT) - a framework created in 2003 and actively used by Eclipse platform developers
  • JavaFX - it was originally a separate language developed by Sun Microsystems to create a rich Internet Application (RIA) , but since version 8 it is just a library included in the standard JDK.

If you plan to create applications for Java 8 and higher, then to avoid additional dependencies, use JavaFX . It is well documented ( JavaDoc ) and there are a large number of manuals ( Official Guides ). You can use the special JavaFX Scene Builder form editor to quickly create an interface.