The slider sample sets the type of control, type of scale, and maximum value using the JFSlider class.
The slider sample uses the following classes:
JFSlider
JFChoice
JFFieldLong
JFSpinButton
Figure 1.17 Slider sample
Operation method
JFSlider
Displays and operates the slider.
Value
Displays the value of the slider control position.
Option
Graduation
Specify how to display the scale with Choice.
Knob
Specify the type of control with Choice.
Maximum
The left edge of the slider is set to "0" and the right edge of the slider is set to "200" as the default.
Pressing the upper/lower spin button sets the maximum value of the slider from "20" to "200" every 20 steps.
Source codes
Slider sample:"Sample Storage Destinations"/jfslider/JFSliderSample.java