Skip to content

mckchandan/Java-Adapter-Class

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

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 : mckchandan1999@gmail.com

Releases

No releases published

Packages

No packages published