Awt 简明教程
AWT Event Adapters
适配器是用来接收各种事件的抽象类。这些类中的方法是空的。这些类存在是为了方便创建侦听器对象。
Adapters are abstract classes for receiving various events. The methods in these classes are empty. These classes exists as convenience for creating listener objects.
AWT Adapters:
以下是 AWT 中监听 GUI 事件时常用的适配器列表。
Following is the list of commonly used adapters while listening GUI events in AWT.
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. |