Adding MouseListener to a Scroll image...

Hi, I'm using a image with some text which is scrolling vertically in a Jpanel..now i just want to stop and rerun the image by clicking the mouse on the image(first click to stop and 2nd click to rerun)..please help me on this..
[250 byte] By [pratheevana] at [2007-11-26 16:30:51]
# 1
Your title seems to have answered your question - use a MouseListener. What's the problem you're having with it?
itchyscratchya at 2007-7-8 22:55:19 > top of Java-index,Desktop,Core GUI APIs...
# 2
hi, as im being a newbie to java, can i get sample code to add mouselistener for the same?Thank you
pratheevana at 2007-7-8 22:55:19 > top of Java-index,Desktop,Core GUI APIs...
# 3
See the API for MouseListener and then just use addMouseListener() to add it to the component. Presumably you have implemented the scrolling, so the actual code will be wholly dependent on that.
itchyscratchya at 2007-7-8 22:55:19 > top of Java-index,Desktop,Core GUI APIs...
# 4
Thanks for ur reply..ill try and let u know ..
pratheevana at 2007-7-8 22:55:19 > top of Java-index,Desktop,Core GUI APIs...