Drag.setHotspot

void setHotspot(int hotX, int hotY)

Sets the position of the drag surface that will be kept under the cursor hotspot.

Initially, the hotspot is at the top left corner of the drag surface.

Parameters

hotXx coordinate of the drag surface hotspot
hotYy coordinate of the drag surface hotspot