Java AWT
2 min readJul 28, 2021
Java programming is used to develop different types of applications like window-based applications, web applications, Enterprise applications, or mobile applications. For creating standalone applications, Java AWT API is used. AWT allows programmers to create Graphical User Interface (GUI) for a window-based application.
Java Abstract Window Toolkit (AWT) is an Application Program Interface (API). The components used in Java AWT are platform-dependent. It uses recourses of the operating system that means the view of these components is changed according to the operating system.
Features of AWT
- AWT has a set of native user interface components.
- It provides various classes for graphical representation of components like font, shape, color.
- It provides a robust event-handling model.
- It has Layout managers which is helpful for changing window size or screen resolution.
- It provides a large range of libraries that can be used for designing graphics for gaming applications or educational applications.
- It has data transfer classes through which cut and paste operation can be performed using the local clipboard.
AWT User Interface Aspects
The AWT UI is designed using the following aspects:
- Elements of UI: These are the elements that are visible to the user and using those elements the user can communicate with the application. AWT provides a wide range of UI elements.
- Layouts: Layouts are useful for managing the different UI elements on the screen and provide a well-organized look to the application.
- Behavior: It explains how the UI elements act on triggering events performed by the user.