How can the size of the thumb be configured for a JSlider
?
With the defaults, and a range for the JSlider
of 256, the thumb is only a few pixels wide, which makes it quite difficult to control with a mouse.
I am using the Windows 7 look and feel and the slider looks like this:
Enabling paintTicks
with a major and minor tick spacing of 0 gives a better (although not preferred) display:
The desired display is shown in the following image - taken from a native Windows 7 application:
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…