JScale
The JScale object is an extension of the JSlider object of the JDK
1.2.2 class libraries. The purpose of this JScale is that you can
instantiate it to create a volume scale and temperature scale.
The JScale has a few added features which were necessary but were
not present in the JSlider. For example, it outputs decimal values
where as in the JSlider it only outputs integer values. Also, it has
a method which allows the user to label the scale any string value
and it will be placed in the center of the scale. The hardest part
of implement this component was figuring out how to have it output
decimal values. After that was solved the rest of it was not that
difficult to implement.
|