Mouse « JSlider « Java Swing Q&A





1. how to put an image over jslider's knob image when mouse is present over the knob's image    stackoverflow.com

I need to put an image over jslider's knob image when mouse is present over the knob's image. I have done something like this.:

  slider = new Slider();

  s= new ...

2. how to change knob's image of Jslider on mouseover and mouse pressed?    stackoverflow.com

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