DragContext.setHotspot

void setHotspot(int hotX, int hotY)

Sets the position of the drag window that will be kept under the cursor hotspot. Initially, the hotspot is at the top left corner of the drag window.

Parameters

hotXx coordinate of the drag window hotspot
hotYy coordinate of the drag window hotspot