AWT Event Adapters - AWT (Abstract Window Toolkit)

What is the use of AWT Event Adapters?

Adapters in AWT are the abstract classes used to receive several events and methods in these classes are empty. These classes exist as convenience for creating listener objects.

AWT Adapters:

Below is the list of commonly used adapters while listening GUI events in AWT.

Sr. No.

Adapter & Description

1

FocusAdapter

It is an abstract adapter class used to receive focus events.

2

KeyAdapter

It is an abstract adapter class used to receive key events.

3

MouseAdapter

It is an abstract adapter class used to receive mouse events.

4

MouseMotionAdapter

It is an abstract adapter class used to receive mouse motion events.

5

WindowAdapter

It is an abstract adapter class used to receive window events.

All rights reserved © 2020 Wisdom IT Services India Pvt. Ltd DMCA.com Protection Status

AWT (Abstract Window Toolkit) Topics