Adapter classes in java.awt.event package

Adapter classes in java.awt.event package are used for the simplification of event handling mechanism. By using adapter classes events can be picked as per the requirements and then processed by an interface. Adapter classes implements the listener interfaces and methods. Here are the adapter classes which implement the following interfaces:

  • KeyAdapter: Implements KeyListener Interface.
  • MouseAdapter: Implements MouseListener Interface.
  • MouseMotionAdapter: Implements MouseMotionListener Interface.
  • WindowAdapter: Implements WindowListener Interface.
  • ComponentAdapter: Implements ComponentListener Interface.
  • ContainerAdapter: Implements ContainerListener Interface.
  • FocusAdapter: Implements FocusListener Interface.

Leave a Reply