Hello all,
I'm coding an application that tracks mouse movements (using
mouseListener and mouseMotionListener). I want to be able to time how
long a cursor remains on a certain component - for example, how long a
user keeps his cursor over a button.
Any suggestions on how to go about this?
Thanks.
Knute Johnson - 18 Feb 2007 17:24 GMT
> Hello all,
>
[quoted text clipped - 6 lines]
>
> Thanks.
Sure. There is a MouseEvent generated every time you enter and exit a
component with the mouse. Write a MouseListener that records the time
on enter and subtract that from the time on exit.

Signature
Knute Johnson
email s/nospam/knute/