Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JSlider increment

843807Dec 6 2009 — edited Dec 7 2009
Hello,

I need to implement a slider with an increment of 5.
 JSlider slider = new JSlider(0, 100, 5);
I do not want to paint minor ticks and use slider.setPaintTicks(true);

I need to be able to use a slider (slider's thumb) with an increment.

Is there anyway to implement a slider with an increment?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 4 2010
Added on Dec 6 2009
10 comments
1,149 views