import java.applet.*;
import java.awt.event.*;
import java.awt.*;
/*<applet code="Appq2.class" height=600 width=600>
</applet>*/
public class Appq2 extends Applet implements MouseListener,KeyListener
{
String msg="";
int x,y;
public void init()
{
addMouseListener(this);
addKeyListener(this);
requestFocus();
}
public void mouseClicked(MouseEvent me)
{
msg="mouseClicked";
repaint();
}
public void mouseEntered(MouseEvent me)
{
showStatus("mouse entered");
}
public void mouseExited(MouseEvent me)
{
showStatus("mouse exited");
}
public void mousePressed(MouseEvent me)
{
msg="mouse pressed";
repaint();
}
public void mouseReleased(MouseEvent me)
{
msg="mouse released";
repaint();
}
public void keyPressed(KeyEvent ke)
{
showStatus("key pressed");
}
public void keyReleased(KeyEvent ke)
{
showStatus("key released");
}
public void keyTyped(KeyEvent ke)
{
msg="key typed is "+ke.getKeyChar();
repaint();
}
public void paint(Graphics g)
{
g.drawString(msg,50,50);
}
}
New evolution of the Mouse. In 1980's round ball mouses are invented, then technology introduced Optical mouses. Now upcoming Mouse is named as Evo mouse . No more movement of your hands on placing a physical mouse, Your finger is the pointer . You can use this mouse on any Flat Surface and also it requires very little space. This mouse contains a Power button on the top, Mini USb port . It works with the help of bluetooth and input is taken by the sensor. View this Video to know the functionality of EvoMouse
Comments
Post a Comment