Changing the width of a knob on a JSlider [duplicate]
Ok, so I have searched google for a while now to see if I can find the answer to this but no dice. Maybe I am just searching for the wrong thing but this is what I want to know:
How do you change the width of the actual Knob on the JSlider component? NOT how to change the width of the JSlider.
Any help would be greatly appreciated!
BasicSliderUI sliderUI = new javax.swing.plaf.basic.BasicSliderUI(jTimeSlider){
protected Dimension getThumbSize() {
return new Dimension(15, 20);
}
};
jTimeSlider.setUI(sliderUI);
where dimension width is the width of the knob.
精彩评论