PPT Slide
Package java.awt.event features common event methods:
actionPerformed(ActionEvent) // Called if an action occurs in the // Component.
keyPressed(KeyEvent) // Called if a character is pressed.
keyReleased(KeyEvent) // Called if a character is released.
mousePressed(MouseEvent) // Called if the mouse is down.
mouseDragged(MouseEvent) // Called if the mouse is dragged
mouseEntered(MouseEvent) // Called when the mouse enters // component.
mouseExited(MouseEvent) // Called when the mouse exits the // component.
mouseMoved(MouseEvent) // Called if the mouse
// moves (button is up) mouseReleased(MouseEvent) // Called if the mouse