This is a very simple applet that draws the sum of a sine and a cosine wave.
And here is the demo:
This applet will only work if you're viewing it with a Java-1.1-enabled browser.
Here is the source.