/* MouseMotionListener will enable you to performactions
when the mouse moves overa hotspot. You can also use this to drag things,that
will require MouseListener andMouseMotionListener at the same time.This applet will show a rectangle that will changecolor
when the mouse moves over it.It's basically the same as the previous one.*/

// This is works like mouseMoved but onlywhen
the mouse is being pressed // at the same time. // To use this for drawing rectangles likein
Paint programs // you will have to use mousePressed toremember
the first coordinates. public void mouseDragged(MouseEvent me)
{
}

/* It's quite easy, but this isn't a good exampleof
programming.You can notice that the applet flickers, thisis
because it is not double-bufferedYou will see this later.*/