APS Excellence in Physics Education Award
November 2019

Education Prize Logo
Science SPORE Prize
November 2011

NSF Logo
The Open Source Physics Project is supported by NSF DUE-0442581.


Return to the EJS Modeling forum
Login to post to this thread

combobox how to use the tool?
Gabriel Ribeiro
2 Posts

Good afternoon, I am a student in a physics course in Rio de Janeiro - Brazil,

I mounted a simulated free fall of a body under gravity, but ignoring air resistance.
My simulation is running fine but I want to give the user the option to observe the consequences of altering the value of gravity by observing the behavior of the mass elsewhere, as an example, the Moon and Mars.
For this I would use the ComboBox, but I can not make the change program variables. The user chooses the location, but the value of the variable "gravity" remains the same.

A second problem is that when I click to restart it does not restart the simulation.

Could someone help me?

From already thank you.

Gabriel Ribeiro

Post edited April 16, 2013 at 11:50 AM EST.

Post edited April 16, 2013 at 11:50 AM EST.

Current Replies - View all
Re: combobox how to use t...   (Francisco Esquembre - )
Re: Re: combobox how to u...   (Gabriel Ribeiro - )
Re: combobox how to use t...   (lookang - )
OSP Projects:
Open Source Physics - EJS Modeling
Physlet Physics
Physlet Quantum Physics
STP Book