Slider Demo:
Java Essentials
, pgs 507-509
Applet Source Code