This program shows how one might enable a user to pinpoint the coordinates of a particular spot in a digital image by providing crosshairs that can be positioned using the mouse and displaying the numeric coordinates as the crosshairs move. It demonstates the use of both accessor and mutator methods, as well as the use of numeric constants.
Click below to download the source files for FancyCrossHairs.