If the A component is a DragSource, then press the left mouse button on the A component, then drag to the B component, release the left mouse button, at this time, even if the B component registers the mouse event listener, the MOUSEUP event is implemented. Listening, will also capture the MouseUp event. As for how to achieve the function of dragging positioning, I have to think about it.