    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.

##

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

##

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.

keyPressed

     public abstract void keyPressed(KeyEvent e)

  Invoked when a key has been pressed.

keyReleased

     public abstract void keyReleased(KeyEvent e)

  Invoked when a key has been released.

    All Packages  Class Hierarchy  This Package  Previous  Next  Index

Submit a bug or feature - Version 1.1.8 of Java Platform API Specification
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.
Copyright 1995-1999 Sun Microsystems, Inc. 901 San Antonio Road,
Palo Alto, California, 94303, U.S.A. All Rights Reserved.