I just created another applet similar to the one at the above URL.

VIEW or DOWNLOAD ejs xml source
then click to translate strings for selected locale.

Press the Alt key and the left mouse button to drag the applet off the browser and onto the desktop.

You can drag the magnetic needle to generate another set of magnetic field line.
It will keep last 10 traces.