I can do it easily. However, I am not going to do it. Because it should be your job. (It is not my job).
If you are a beginer, then you should try to do it by yourself. And I will try to help.
I will feel sorry if I did the homework for you.
Adding a view element is not difficult. Just select an element(click it) from right hand side element list,
then click it inside the drawingPanel. Then assign proper value to it's property (coordinate...etc)
Please check out [url=http://www.phy.ntnu.edu.tw/ntnujava/index.php?board=34.0]EJS tutorial (How to create simulation with EJS)[/url] (there are step by step examples).
or check out [url=http://www.phy.ntnu.edu.tw/ntnujava/index.php?topic=656.0]SWF movie show step by step instructions to create java simulation with EJS.[/url]
I will try to help if you try to lean to use it. Otherwise, there is no way you can learn to use it to communicate with MATHLAB. If you learn to do it by yourself, then you can do it for other problems, too! That is the way student learn and gain ability. I should not do all the work for you.
Do you feel if fair, if I did all the work for your classmate and he get better grade because someone did all the homework for him? (Actually, for long time effect, the classmate will be loss in the job market, because he did not learn the require ability).
I promise to help if you try to learn it. ;) However, I should not do all the work for you. otherwise, you would learn nothing. >:(
Try to modified from the above examples and you will find it is not really so difficult as you thought.
If you do find problem, write it down and attached the xml file and I will try to help.
This is the best I can do! O.K!