[quote author=Fu-Kwun Hwang link=topic=148.msg2619#msg2619 date=1217218484]
I just upload the source code as attachment for the first posted message.
shm.java is the code for the applet, spring.java is the code for drawing the spring.

[/quote]

Thank you very much. It was very helpful  :)