i managed to re-code the logic of showing the text scaffolds and picture. One problem solved.

It seems there is a bug i can't work around it.

Only for p = -1.8 , f = 1.8, a strange drawing appears.
The rest of the values seems to work well.

any suggestion how to make the bug disappear?[img]http://www.phy.ntnu.edu.tw/ntnujava/index.php?action=dlattach;topic=1167.0;attach=1198;image[/img]

/htdocs/ntnujava/ejsuser/14019/users/sgeducation/lookang/qfwee05_pkg/qfwee05.propertiesFull screen applet or Problem viewing java?Add http://www.phy.ntnu.edu.tw/ to exception site list
Press the Alt key and the left mouse button to drag the applet off the browser and onto the desktop. This work is licensed under a Creative Commons Attribution 2.5 Taiwan License
Download EJS jar file(864kB):double click downloaded file to run it. , Download EJS source View EJS source