这个倒没碰过,,,
UP&GZ

解决方案 »

  1.   

    可以用getpoint().好像是这个,不记的了。不过你可诶以去查查msdn.我好就不用这个了。
    有时间帮你查查看
      

  2.   

    查询鼠标的位置先有一个鼠标事件返回一个MouseEvent对象,调用它的int getX()和int getY()返回鼠标的x和y坐标,或调用它的getPoint()返回一个Point对像,Point对象也有getX()和getY()返回x和y坐标位置.
      

  3.   

    这个不完整,可以对你有启发!写完整了告诉我一下!呵呵~~
    import java.awt.Point;
    public class MouseMovedExamEvent extends java.util.EventObject{
     protected int x;
     protected int y;
     public void MouseMovedExampleEvent(Component source,Point location){
      super(source);
      x=location.x;
      y=location.y;
     }
     public Point getLocation(){
      return new Point(x,y);
     }
    }
      

  4.   

    <HTML>
    <HEAD>
    <TITLE> New Document </TITLE>
    <script language=jScript>
      <!--
    function mm()
    {
    result.value = "&Ecirc;ó±ê&micro;&Auml; X &Ouml;á×&oslash;±ê&Ecirc;&Ccedil;"+event.x+"Y&Ouml;á×&oslash;±ê&Ecirc;&Ccedil;"+event.y;
    }
      -->
      </script>
    </HEAD><BODY onmousemove="mm();"><textarea id = result Rows=4 COL=40 cols="22">
    </textarea>
    </BODY>
    </HTML>
      

  5.   

    在一个MouseEvent类中的一个getPoint()方法。