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();
}
}
}