Graphical User Interface GUI
Graphical User Interface GUI
PROGRAMMING
(OOP)
GUI
What is GUI?
• GUI, which stands for Graphical User Interface, is a user-
friendly visual experience builder for Java Applications. It
comprises graphical units like buttons, labels, windows, etc. via
which users can connect with an application.
Java Abstract Window Toolkit
(AWT) Graphical Components
• The Abstract Window Toolkit (AWT) is Java’s original platform-independent
windowing graphics, and user-interface widget toolkit, preceding Swing. The
AWT is part of the Java Foundation Classes-the standard API for providing a
graphical user interface for a Java program. With the AWT, you can use the
Java GUI components like button, textbox, etc. from the library and do not
have to create the components from scratch.
• java.awt - Contains the main superclasses for the GUI components plus a
number of utility type classes, such as Color and Point.
• java.awt.event - Contains the classes and interfaces for managing
events from the GUI components, e.g. button clicks and mouse movements.
• java.swing - Contains most of the visible GUI components that are used
such as buttons, text fields, frames and panels.
AWT Packages