x+getLocationOnScreen().x
y+getLocationOnScreen().y

解决方案 »

  1.   

    楼上的说的好象有点问吧?我想下面这个应该是解决的方法呀!
    java.swing.SwingUtilities.convertPointToScreen(Point p, Component c);
        Convert a point from a component's coordinate system to screen coordinates.  Parameters:
      p - a Point object (converted to the new coordinate system)
      c - a Component object组件
      

  2.   

    x+getLocationOnScreen().x
    y+getLocationOnScreen().y
    就这样试一试吧好像没有什么问题呢??
      

  3.   

    没错,就是
    x+getLocationOnScreen().x
    y+getLocationOnScreen().y
    这两个!!
      

  4.   

    x+getLocationOnScreen().x
    y+getLocationOnScreen().y
      

  5.   

    楼上用的都是swing的awt该如何取绝对坐标?