Demonstrator Applet
This simple demonstrator applet accomplishes in about 50 lines of code, an interactive graphical applet displaying a simple mathematical waveform.
The sine wave amplitude is dynamically adjustable by means of the scrollbar slider.
Applet source code link