Depress the button and drag the mouse to identify image coordinates.

Source code

FancyCrossHairs.java