Interface java.awt.event.KeyListener
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface java.awt.event.KeyListener

public interface KeyListener
extends EventListener
The listener interface for receiving keyboard events.

Version:
1.7 07/01/98
Author:
Carl Quinn

Method Index

 o keyPressed(KeyEvent)
Invoked when a key has been pressed.
 o keyReleased(KeyEvent)
Invoked when a key has been released.
 o keyTyped(KeyEvent)
Invoked when a key has been typed.

Methods

 o keyPressed
public abstract void keyPressed(KeyEvent e)
Invoked when a key has been pressed.

 o keyReleased
public abstract void keyReleased(KeyEvent e)
Invoked when a key has been released.

 o keyTyped
public abstract void keyTyped(KeyEvent e)
Invoked when a key has been typed. This event occurs when a key press is followed by a key release.


All Packages  Class Hierarchy  This Package  Previous  Next  Index