You're going to have to store the point that is clicked on in a two-row array. Then, use the draw functions in applets to draw the lines between the points. If you want a smooth line (which I"m assuming you do), I don't know if there's a command to draw a best-fit line, but if not, you can always have the program calculate the averages over the series of points using calculus. That would be difficult, though, and there's probably a command for doing in already. Of course, don't take my word for it, I'm just using a little problem-solving skills here - I don't do much gui stuff