Help with Java SWT And Scales

Any Java gurus out there willing to help?

I’m working in Eclipse using a combination of Jigloo and hand coding. I don’t have much experience with the scale class/component. What I want to do is have a scale with 6 different settings to which the selection “snaps” to when dragged. Currently, the scale will move smoothly when dragged no matter what I set the default increment or page increment to. How can I force the scale to “snap” to the closest “setting”?

Thanks in advance!

At first, I thought SWT was a typo for AWT. Sorry, I’m not familiar with SWT (the little GUI stuff I do, I use Swing). Might you post a link to the API?

One suggestion I have, without knowing whether it’s applicable, is to segment the range by the number of ticks (+1, for the 0th tick). For example, rather than have a scale that goes from 1 to 1000 with a tick every 200 units, declare the scale from 0 to 5 (and fill in the tick text yourself as appropriate).

Again, without an even passing familiarity with SWT, I have no idea whether that helps.