📜  AWT事件适配器

📅  最后修改于: 2020-11-18 07:48:08             🧑  作者: Mango


适配器是用于接收各种事件的抽象类。这些类中的方法为空。这些类的存在是为了方便创建侦听器对象。

AWT适配器:

以下是在AWT中监听GUI事件时常用的适配器列表。

Sr. No. Adapter & Description
1

FocusAdapter

An abstract adapter class for receiving focus events.

2

KeyAdapter

An abstract adapter class for receiving key events.

3

MouseAdapter

An abstract adapter class for receiving mouse events.

4

MouseMotionAdapter

An abstract adapter class for receiving mouse motion events.

5

WindowAdapter

An abstract adapter class for receiving window events.