I am trying to find the Starting location/position of the JFrame in order to map the mouse cursor from the JFrame window to desktop. Is there anyway to find the X,Y position of JFrame ?
You can use getLocation()
or getLocationOnScreen()
method of JFrame which are inherited from java.awt.Component.