Skip to content

Latest commit

 

History

History
29 lines (15 loc) · 905 Bytes

README.md

File metadata and controls

29 lines (15 loc) · 905 Bytes

Java-Adapter-Class

Java adapter classes provide the default implementation of listener interfaces. If you inherit the adapter class, you will not be forced to provide the implementation of all the methods of listener interfaces. So it saves code.

The adapter classes are found in java.awt.event, java.awt.dnd and javax.swing.event packages. The Adapter classes with their corresponding listener interfaces are given below.

Adapter class ---------- Listener interface

WindowAdapter ---------- WindowListener

KeyAdapter ---------- KeyListener

MouseAdapter ---------- MouseListener

MouseMotionAdapter ---------- MouseMotionListener

FocusAdapter ---------- FocusListener

ComponentAdapter ---------- ComponentListener

ContainerAdapter ---------- ContainerListener

HierarchyBoundsAdapter ---------- HierarchyBoundsListener

For More Queries

Feel free to DM email : [email protected]