I would stretch BasicSliderUIand redefine the method paintThumbso that you can draw your thumb with arbitrary rotation, applying a rotation transformation to the thumb image, or manually rotating the thumb. Then apply this interface to your JSlider.
To control the rotation using the mouse and keyboard, it may be easiest to add MouseWheelListenerto JSlider so that you control the rotation of the thumb with the mouse wheel.
source
share