Create a simple java Applet that shows the mouse moving position only on the status bar of the Applet window ucing MouseMotionAdapter class

import java.awt.*;
import java.awt.event.*;
import java.applet.*;
/*
<applet code="MouseMovingPositionStatusBarAdp" width=300 height=100>
</applet>
*/
public class MouseMovingPositionStatusBarAdp extends Applet
{
    public void init()
    {
        addMouseMotionListener(new Mmadp());
    }
    private class Mmadp extends MouseMotionAdapter
    {
        // Handle mouse moved.
        public void mouseMoved(MouseEvent me)
        {
            showStatus("Moving mouse at " + me.getX() + ", " + me.getY());
            repaint();
        }
    }

}