I need to customize the knob of JSlider. I need to put my own knob\'s image over default knob of Jslider. The problem is that currently two knobs are coming in response. One my
A solution with a different BasicSliderUI looks like this:
public class SuperSlider extends JSlider {
public SuperSlider(int min, int max, int value) {
super(min,max,value);
setUI(new SuperSliderUI(this));
}
private class SuperSliderUI extends BasicSliderUI {
@Override
public void paintThumb(Graphics g) {
}
}
}