Prof. Wolfgang told me that : setX,setY and getX, getY will conflict with default java method.
So the function name have been change to setXPos, setYPos and getXPos,getYPos.

You can drag the leftmost coil in the previous physlet, then you need to click the button to move coils to new dragged position.

However, There is no onClick event available in physlet library.