Swing and the AWT

Classic programmed-learning exercises, refreshed for modern Java and presented in the current MrStyner.com portfolio style.

Modern Java noteThis archive has been refreshed for Java 25 LTS. Core language concepts remain useful, while outdated setup instructions and browser-era Java are labeled or replaced. Java 26 is the current feature release; Java 25 is used here as the stable teaching baseline.
go to previous page   go to home page   go to next page

Answer:

In the US, "GUI" is pronounced "gooey."

Swing and the AWT

A graphical user interface consists of graphical components, such as:

  • Windows
  • Buttons
  • Menus
  • Text fields

Swing components are based on the fundamental classes of the Application Windowing Toolkit (AWT). The AWT also contains some older components which are no longer used. Swing components come with recent java Java releases. If you download the most recent release of Java, Swing will be part of it.

The older AWT components are similar to Swing components, but Swing components are more versatile. Also, Swing integrates smoothly with the Java Foundation Classes. The Java Foundation Classes provide many classes needed for modern software development. Swing remains available for desktop applications, although modern Java developers may also choose JavaFX/OpenJFX for all new application code.

QUESTION 2:

Is a button a GUI component?