Javatpoint Logo
Javatpoint Logo

Java MouseMotionListener Interface

The Java MouseMotionListener is notified whenever you move or drag mouse. It is notified against MouseEvent. The MouseMotionListener interface is found in java.awt.event package. It has two methods.

Methods of MouseMotionListener interface

The signature of 2 methods found in MouseMotionListener interface are given below:

Java MouseMotionListener Example

Output:

java awt mousemotionlistener example 1

Java MouseMotionListener Example 2

Output:

java awt mousemotionlistener example 2
Next TopicJava ItemListener




Please Share

facebook twitter google plus pinterest

Learn Latest Tutorials


Preparation


B.Tech / MCA