Java AWT is an API to developer GUI and window based application in java. Java AWT provide a huge set of reusable GUI component for such as buttons text fill label panel and frame for building GUI at the applications. AWT consist of twelve packages but only two packages are commonly used.
.AWT provides a set of classes and interfaces that help the developer to create components such as buttons, text fields, labels, checkboxes, menus, windows. This is a platform-dependent API of Java, that is its implementation depends on the native GUI components of the menus operating system.
1. Features of Java AWT :-
The java AWT packages contains the core AWT graphics classes such as text fill.
.GUI components classes such as text fill label.
.GUI container classes , frame panel.
.Layout managers such as flow layout border layout , grid layout.
.Custom graphics classes such as col and font.
.Platform-dependent :-Uses Native OS components.
.Provides GUI Components :- Button, Label, Text Field, Checkbox, List, etc .Event Handling :-Supports event delegation model to handle user actions (mouse click, key press, etc.). .Graphics support :-Graphics class to draw shapes (line, circle, is the rectangle) and images.
.Lightweight and heavyweight components :-AWT components are heavyweight because they use native resources of the OS.
2. Java AWT Component:- Packages supports event handling.
.Event classes such as action, event, mouse event, key event.
.Event listener such as action listener , mouse listener, key listener
.Commonly used AWT Components:
.Button :-Creates a clickable button.
.Label :-Displays text.
.Text Field :-Single-line text input field.
.Checkbox :-For selecting options.
.List :-Displays a list of items.
.Frame :-Creates a main window.
Comments
Post a Comment