SWING: MouseMotionEvent Class Cheat Sheet

Following is the declaration for java.awt.event.MouseMotionEvent Class −

public class MouseMotionEvent
   extends InputEvent
# Methods
void mouseDragged(MouseEvent e)Invoked when a mouse button is pressed on a component and then dragged.
void mouseMoved(MouseEvent e)Invoked when the mouse cursor has been moved onto a component but no buttons have been pushed.
# Methods Inherited
  • java.awt.event.InputEvent
  • java.awt.event.ComponentEvent
  • java.awt.AWTEvent
  • java.util.EventObject
  • java.lang.Object

Leave a Reply

Your email address will not be published. Required fields are marked *