The MouseMotionAdapter class
implements the methods of MouseMotionListener
with empty functions. It may be easier for you to extend MouseMotionAdapter,
overriding only those methods you are interested in, than to implement
MouseMotionListener and provide
the empty functions yourself.