09 December 2004 - java_dev (original) (raw)

| | 01:54 am - 101100010011111 util's post brought something to my mind =)is there an easy way to get if the mouse is 'hovering' over an object?besides perhaps doing a timer on mouseover and then checking if mouse is still over when the timer runs out =/ (and killing timer + 'event' if mouse exits i suppose)it came to mind because i wrote an applet a couple months back with some simple dragging and dropping and i realized it would be nice to have simple 'popup' on object:hover but i couldn't think of a decent way to do it (the timer bit above just seems so nasty and google results were rather fruitless) so if anyones done it and has sample code/pseudocode it'd be nice for future reference | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |