Java AWT Architecture: Components, Events & Listeners
Java AWT Architecture: Components and Events
The Abstract Window Toolkit (AWT) is Java's original platform-dependent windowing, graphics, and user interface (UI) toolkit.
AWT Class Hierarchy
🖼️ The core of the AWT is structured around a few key classes, all of which inherit from the Object class.
1. Component Class
The Component class is the root of all AWT UI elements. A Component is an object with a graphical representation that can be displayed on the screen and can interact with the user. Examples of components include buttons, text fields, and scrollbars.
- Key capabilities:
- Defining visual appearance and behavior
- Handling events (user input)
- Drawing and painting
2. Container Class
A Container is a special type of component that can hold and organize... Continue reading "Java AWT Architecture: Components, Events & Listeners" »
English with a size of 11.3 KB