thanks for your help sir.

I will be starting another thread as magnitude of vector is not encouraged to be developed further until pedagogy and syllabus are sorted first on my end.

applet is here now
http://www.phy.ntnu.edu.tw/ntnujava/index.php?topic=674.0