KeyPressed, KeyReleased, KeyTyped

Gostaria de saber a diferença funcional entre estes tres metodos…

keyTyped(KeyEvent): Called just after the user types a Unicode character into the listened-to component.
keyPressed(KeyEvent): Called just after the user presses a key while the listened-to component has the focus.
keyReleased(KeyEvent): Called just after the user releases a key while the listened-to component has the focus.

http://java.sun.com/docs/books/tutorial/uiswing/events/keylistener.html

1 curtida