Index (Frames) | Index (No Frames) | Package | Package Tree | Tree
java.awt.event

Class KeyAdapter

java.lang.Object
|
+--java.awt.event.KeyAdapter

All Implemented Interfaces:

KeyListener


public abstract class KeyAdapter

extends Object

implements KeyListener

This class implements KeyListener and implements all methods with empty bodies. This allows a listener interested in implementing only a subset of the KeyListener interface to extend this class and override only the desired methods.

Since:Author:See Also:

Constructor Summary

KeyAdapter()

Do nothing default constructor for subclasses.

Method Summary

voidkeyPressed(java.awt.event.KeyEvent event)

Implements this method in the interface with an empty body.
voidkeyReleased(java.awt.event.KeyEvent event)

Implements this method in the interface with an empty body.
voidkeyTyped(java.awt.event.KeyEvent event)

Implements this method in the interface with an empty body.

Constructor Details

KeyAdapter

public KeyAdapter()

Do nothing default constructor for subclasses.


Method Details

keyPressed

public void keyPressed(java.awt.event.KeyEvent event)

Implements this method in the interface with an empty body.

Parameters:


keyReleased

public void keyReleased(java.awt.event.KeyEvent event)

Implements this method in the interface with an empty body.

Parameters:


keyTyped

public void keyTyped(java.awt.event.KeyEvent event)

Implements this method in the interface with an empty body.

Parameters: