Hai
I did it in a way which i am not sure to be apprpriate. I started a thread (defined in an innerclass) in the mouse pressed event of the button and stopped the thread in the mousereleased event .
Any body with a different elegant idea kindly make me aware of it.
Any one facing the same issue may try this method and give me a feedback
Thank you