1. A method comprising the steps, performed by a data processing system, of: executing program code in the data processing system to display a note, wherein the note has contents and a location; and, executing program code in the data processing system to add a representation of the contents of the note and the location of the note to an index, wherein the location of the note added to the index is with respect to an object within a window.