Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

SWING event adapter


May 15, 2021 SWING


Table of contents


SWING event adapter

An adapter is an abstract class that receives various events. T he methods in these classes are empty. These classes exist to facilitate the creation of listener objects.

SWING adapter:

The following is a list of adapters that are commonly used when listening to GUI events in SWING.

Sr. No. The adapter is described
1 FocusAdapter
The abstract adapter class used to receive focus events.
2 KeyAdapter
The abstract adapter class used to receive keystroke events.
3 MouseAdapter
The abstract adapter class used to receive mouse events.
4 MouseMotionAdapter
The abstract adapter class used to receive mouse movement events.
5 WindowAdapter
The abstract adapter class used to receive window events.