楼上的说的好象有点问吧?我想下面这个应该是解决的方法呀! 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组件
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组件
y+getLocationOnScreen().y
就这样试一试吧好像没有什么问题呢??
x+getLocationOnScreen().x
y+getLocationOnScreen().y
这两个!!
y+getLocationOnScreen().y