Listener Interface Event Type Event-handling Methods Event Properties
ActionListener ActionEvent actionPerformed() evt.getSource()
evt.getActionCommand()
MouseListener MouseEvent mousePressed()
mouseReleased()
mouseClicked()
mouseEntered()
mouseExited()
evt.getSource()
evt.getX()
evt.getY()
evt.getWhen()
evt.isShiftDown()
evt.isAltDown()
evt.isControlDown()
evt.isMetaDown()
MouseMotionListener MouseEvent mouseMoved()
mouseDragged()
FocusListener FocusEvent focusGained()
focusLost()
evt.getSource()
KeyListener KeyEvent keyPressed()
keyReleased()
keyTyped()
evt.getSource()
evt.getWhen()
evt.getKeyCode()
evt.getKeyChar()
evt.isShiftDown(), etc