Module java.desktop

Interface KeyListener

    • Method Summary

      Modifier and Type Method Description
      void keyPressed​(KeyEvent e)
      Invoked when a key has been pressed.
      void keyReleased​(KeyEvent e)
      Invoked when a key has been released.
      void keyTyped​(KeyEvent e)
      Invoked when a key has been typed.
    • Method Detail

      • keyTyped

        void keyTyped​(KeyEvent e)
        Invoked when a key has been typed. See the class description for KeyEvent for a definition of a key typed event.
        Parameters:
        e - the event to be processed
      • keyPressed

        void keyPressed​(KeyEvent e)
        Invoked when a key has been pressed. See the class description for KeyEvent for a definition of a key pressed event.
        Parameters:
        e - the event to be processed
      • keyReleased

        void keyReleased​(KeyEvent e)
        Invoked when a key has been released. See the class description for KeyEvent for a definition of a key released event.
        Parameters:
        e - the event to be processed