home *** CD-ROM | disk | FTP | other *** search
/ DOS/V Power Report 1998 February / VPR9802A.ISO / APP_DEMO / VC / MAIN.BIN / KeyListener.java < prev    next >
Text File  |  1997-10-27  |  1KB  |  51 lines

  1. /*
  2.  * @(#)KeyListener.java    1.6 96/11/23
  3.  * 
  4.  * Copyright (c) 1995, 1996 Sun Microsystems, Inc. All Rights Reserved.
  5.  * 
  6.  * This software is the confidential and proprietary information of Sun
  7.  * Microsystems, Inc. ("Confidential Information").  You shall not
  8.  * disclose such Confidential Information and shall use it only in
  9.  * accordance with the terms of the license agreement you entered into
  10.  * with Sun.
  11.  * 
  12.  * SUN MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE
  13.  * SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  14.  * IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
  15.  * PURPOSE, OR NON-INFRINGEMENT. SUN SHALL NOT BE LIABLE FOR ANY DAMAGES
  16.  * SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR DISTRIBUTING
  17.  * THIS SOFTWARE OR ITS DERIVATIVES.
  18.  * 
  19.  * CopyrightVersion 1.1_beta
  20.  * 
  21.  */
  22.  
  23. package java.awt.event;
  24.  
  25. import java.util.EventListener;
  26.  
  27. /**
  28.  * The listener interface for receiving keyboard events.
  29.  *
  30.  * @version 1.6 11/23/96
  31.  * @author Carl Quinn
  32.  */
  33. public interface KeyListener extends EventListener {
  34.  
  35.     /**
  36.      * Invoked when a key has been typed.
  37.      * This event occurs when a key press is followed by a key release.
  38.      */
  39.     public void keyTyped(KeyEvent e);
  40.  
  41.     /**
  42.      * Invoked when a key has been pressed.
  43.      */
  44.     public void keyPressed(KeyEvent e);
  45.  
  46.     /**
  47.      * Invoked when a key has been released.
  48.      */
  49.     public void keyReleased(KeyEvent e);
  50. }
  51.