1 of 8

Adanced Java Programming

Introduction to AWT

Smt.M.Jeevana Sujitha

Assistant Professor

Department of Computer Science and Engineering

SRKR Engineering College, Bhimavaram, A.P. - 534204

2 of 8

OBJECTIVES

The Objective of this lecture is

  • To learn about Introduction of AWT.

3 of 8

Window

Introduction to AWT

  • AWT stands for Abstract Toolkit.
  • It is an API used to develop GUI or window based applications in java.
  • GUI application is an application which are interacted with end user and java application.
  • GUI acts as an interface between end user and java application.

4 of 8

Introduction to AWT

  • The AWT components are platform dependent i,e components are displayed according to the view of operating system.
  • AWT is a light weight component i,e its components are using the resources of operating system.
  • The java.awt.* package provides classes for API such as TextField, TextArea, Label,etc.

5 of 8

AWT Hierarchy

6 of 8

AWT Hierarchy

Component: It is an object which is displayed in the container.

Example: Label, TextField, Button are components.

Container: A group of components can be placed in a Frame is known

as Container.

  • By default all the components in the container are static.

like Button, TextField etc.

7 of 8

AWT Hierarchy

Window: The window is the container that have no borders and menu bars.

Panel: The Panel is the container that does not contain title bar and menu bars. It have another components like Button, TextField.

Frame: It is the container that contain title bar and can have menu bars. It can have other components

8 of 8

THANK YOU