views:

20

answers:

1

Hi All,

I need to change knob's image of Jslider on mouse over and mouse pressed over it.

Please tell me how can i do this.

Thanks Jyoti

+1  A: 

Implement a MouseListener and handle the mouse pressed/released events, and mouse entered/exited events. For the pressed/entered events change your component as desired, and for released/exited, change it back.

Software Monkey
Thanks for the reply. i have done the coding as mentioned n this link. http://stackoverflow.com/questions/4042527/how-to-put-an-image-over-jsliders-knob-image-when-mouse-is-present-over-the-knob. But onmouseover there is no change on knob's image. Could you please explain with some code snippet.
Jyoti
Post your SSCCE that shows what you attempted to do.
camickr
I guess I should have look at his profile, seeing the 0% accept rate and realized it was not worth bothering with.
Software Monkey