import java.awt.*;
import java.awt.event.*;
public class game0128 extends Frame implements MouseMotionListener {
game0128() {
super("game0128");
addMouseMotionListener(this);
setSize(700, 700);
addWindowListener(new stopwin());
show();
}
public void mouseDragged(MouseEvent e) {
}
public void mouseMoved(MouseEvent e) {
int x,y;
y=e.getY() ;
x=e.getX();
if(y>100)System.out.println(x);
}
class stopwin extends WindowAdapter{
public void windowClosing(WindowEvent we){System.exit(0);}
}
public static void main(String [] args) {
new game0128();
}
}
最終更新:2011年02月07日 05:30