NOT ABLE TO DISPLAY MOUSE MOVE POSITION IN STATUS BAR
//Adapter Class Demo
import java.applet.*;
import java.awt.*;
import java.awt.event.*;
/*
<applet code="adapterdemo" width=200 height=200>
</applet>
*/
public class adapterdemo extends Applet
{
public void init()
{
addMouseListener(new myadapter(this));
}
}
class myadapter extends MouseAdapter
{
String msg="";
public int x,y;
adapterdemo adp;
public myadapter(adapterdemo ad)
{
this.adp=adp;
}
public void mouseMoved(MouseEvent me)
{
/*x=me.getX();
y=me.getY();
msg="Mouse id clicked";
repaint();*/
adp.showStatus("Moving mous at" +me.getX() +","+me.getY());
//paint();
}
}
/*public void paint(Graphics g)
{
g.drawString(x,y);
}
}*/