h o m ep r o j e c ta p p l e t sa d v i s o ra b o u t   u s
curve.gif
applets
JScale

Programmer:   Druapatie Bachhu
Applet:   JScale Applet
Documentation:   JScale Docs
Source Code:   JScale
JScalePanel

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.

<< Back to applet index


home | project | applets | advisor | about us
footer.gif