Class KeyEvent

  • All Implemented Interfaces:
    java.io.Serializable

    public class KeyEvent
    extends Event
    Represents a key pressed by the user.
    Author:
    tomyeh
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int DELETE  
      static int DOWN  
      static int END  
      static int F1  
      static int F10  
      static int F11  
      static int F12  
      static int F2  
      static int F3  
      static int F4  
      static int F5  
      static int F6  
      static int F7  
      static int F8  
      static int F9  
      static int HOME  
      static int INSERT  
      static int LEFT  
      static int PAGE_DOWN  
      static int PAGE_UP  
      static int RIGHT  
      static int UP  
    • Constructor Summary

      Constructors 
      Constructor Description
      KeyEvent​(java.lang.String name, Component target, int keyCode, boolean ctrlKey, boolean shiftKey, boolean altKey)  
      KeyEvent​(java.lang.String name, Component target, int keyCode, boolean ctrlKey, boolean shiftKey, boolean altKey, boolean metaKey, Component ref)
      Constructs an event with MetaKey
      KeyEvent​(java.lang.String name, Component target, int keyCode, boolean ctrlKey, boolean shiftKey, boolean altKey, Component ref)
      Constructs a mouse relevant event.