Objects that implement the MouseMotionListener interface can receive motion-oriented MouseEvent objects. Listeners must first register themselves with objects that produce events. When events occur, they are automatically propagated to all registered listeners.
public abstract interface java.awt.event.MouseMotionListener extends java.util.EventListener { // Instance Methods public abstract void mouseDragged (MouseEvent e); public abstract void mouseMoved (MouseEvent e); }
The key event that occurred.
Notifies the MouseMotionListener that the mouse has been dragged.
The key event that occurred.
Notifies the MouseMotionListener that the mouse has been moved.
AWTEventMulticaster, EventListener, MouseEvent, MouseMotionAdapter