NTNUJAVA Virtual Physics Laboratory
Enjoy the fun of physics with simulations!
Backup site http://enjoy.phy.ntnu.edu.tw/ntnujava/

Easy Java Simulations (2001- ) => Questions related to EJS => Topic started by: lookang on August 10, 2007, 12:40:36 am



Title: how to make x and y axis automatically on the drawing panel
Post by: lookang on August 10, 2007, 12:40:36 am
how to make x and y axis drawn automatically on the drawing panel

a simple axis on the drawing panel will make projectile motion in relation to a context

(http://)

i don't remember seeing it done in EJS drawing panel

is there a similar xml file i can refer to ?

or should i redo it in a plotting panel :)

thanks


Title: Re: how to make x and y axis automatically on the drawing panel
Post by: Fu-Kwun Hwang on August 10, 2007, 08:29:59 am
The only differences between drawingPanel and PlottingPanel is the x/y axis will be drawn automatically.
So the easier way is to use plottingPanel.

Unless you want to draw it with vector GUI elements by yourself.


Title: Re: how to make x and y axis automatically on the drawing panel
Post by: lookang on August 10, 2007, 12:42:25 pm
nice!!

i am using the PlottingPanel now. Just cut and paste over from my drawing panel

thanks :D


Title: Re: how to make x and y axis automatically on the drawing panel
Post by: Fu-Kwun Hwang on August 10, 2007, 01:35:14 pm
There is a better way to do it:
You can select Reparent and type in the name for the GUI element (may be "PlottingPanel" for your case) to put it under it.


Title: Re: how to make x and y axis automatically on the drawing panel
Post by: lookang on August 10, 2007, 02:35:48 pm
noted with thanks