import java.awt.*;
import java.awt.event.*;
import java.applet.*;
/*
<applet code="MouseListenersStatusBarAdp" width=300 height=100>
</applet>
*/
public class MouseListenersStatusBarAdp extends Applet
{
public void init()
{
addMouseListener(new MSAdp());
}
private class MSAdp extends MouseAdapter
{
public void mousePressed(MouseEvent me)
{
showStatus("Mouse down.");
repaint();
}
// Handle button released.
public void mouseReleased(MouseEvent me)
{
showStatus("Mouse Up.");
repaint();
}
}
}