previous | start | next

## Mouse Listeners

- Attach mouse listener to component
- Can listen to mouse events (clicks) or mouse motion events

      public interface MouseListener
      {
         void mouseClicked(MouseEvent event);
         void mousePressed(MouseEvent event);
         void mouseReleased(MouseEvent event);
         void mouseEntered(MouseEvent event);
         void mouseExited(MouseEvent event);
      }

      public interface MouseMotionListener
      {
         void mouseMoved(MouseEvent event);
         void mouseDragged(MouseEvent event);
      }

previous | start | next