import java.awt.*;
import java.awt.event.*;
import java.applet.*;
public class Mou2 extends Applet {
public void init()
{
addMouseListener( new MouseClickHandler());
addMouseMotionListener( new MouseMotionHandler());
}
class MouseClickHandler extends MouseAdapter{
public void mouseClicked(MouseEvent e)
{
showStatus("Mouse Clicked");
}
}
class MouseMotionHandler extends MouseMotionAdapter{
public void mouseMoved(MouseEvent e)
{
showStatus("Mouse Moved");
}
}
}