Mega Code Archive

 
Categories / Java Tutorial / Swing Event
 

The MouseMotionListener Interface

This interface defines methods that are called when the mouse is moved or dragged with a button pressed. Defined MethodsDescription mouseMoved(MouseEvent e)Called when the mouse is moved within a component mouseDragged(MouseEvent e)Called when the mouse is moved within a component while a mouse button is held down