Code example for JSlider

Methods: setPaintTicks