The interface MouseMotionEvent indicates a mouse action occurred in a component. This low-level event is generated by a component object when mouse is dragged or moved.
Following is the declaration for java.awt.event.MouseMotionEvent Class:
- public class MouseMotionEvent
- extends InputEvent
|S.N.||Method & Description|
|1||void mouseDragged(MouseEvent e) Invoked when a mouse button is pressed on a component and then dragged.|
|2||void mouseMoved(MouseEvent e) Invoked when the mouse cursor has been moved onto a component but no buttons have been pushed.|
This interface inherits methods from the following classes: