public void mouseMoved(MouseEvent e) {} public void mouseDragged(MouseEvent e) {}
This method is called | When the user does this action |
mouseMoved(...) | The mouse is moved while over the component. |
mouseDragged(...) | The mouse is dragged (moved with a button pressed). |