get the java plugin here
The applet below demonstrates superposition of two sine waves travelling in opposite directions. It was a little high-school physics project.