Class KeyAdapter

    • Constructor Summary

      Constructors 
      Constructor Description
      KeyAdapter()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void keyPressed​(KeyEvent e)
      Sent when a key is pressed on the system keyboard.
      void keyReleased​(KeyEvent e)
      Sent when a key is released on the system keyboard.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • KeyAdapter

        public KeyAdapter()
    • Method Detail

      • keyPressed

        public void keyPressed​(KeyEvent e)
        Sent when a key is pressed on the system keyboard. The default behavior is to do nothing.
        Specified by:
        keyPressed in interface KeyListener
        Parameters:
        e - an event containing information about the key press
      • keyReleased

        public void keyReleased​(KeyEvent e)
        Sent when a key is released on the system keyboard. The default behavior is to do nothing.
        Specified by:
        keyReleased in interface KeyListener
        Parameters:
        e - an event containing information about the key release