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.

ComboBox post and replies

Return to the ComboBox thread
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.


Replies to combobox how to use the tool?

Re: combobox how to use the tool? -
Francisco Esquembre
237 Posts

Gabriel,

Please, attach the file for your simulation, so that I can have a quick look.

Paco



Re: Re: combobox how to use the tool? -
Gabriel Ribeiro
2 Posts

The file is attached.
Thank you.

Gabriel Ribeiro

Attached File: ejs_QuedaLivreFinal.rar



Re: combobox how to use the tool? -
lookang Avatar
lookang
245 Posts

hi gabriel, u can refer to the source code in this model for the checkbox option. http://www.compadre.org/osp/items/detail.cfm?ID=9707

 

or the updated version available here

http://weelookang.blogspot.sg/p/physics-applets-virtual-lab.html

 

 

31 October 2011 added magnify and random length objects to challenge students to think more, hopefully more fun to figure out for themselves! http://weelookang.blogspot.sg/2010/06/ejs-open-source-vernier-calipers-java.html https://dl.dropbox.com/u/44365627/lookangEJSworkspace/export/ejs_AAPTVernierCaliper.jar author: Fu-Kwun and lookang (this remix version)

Post edited April 19, 2013 at 3:48 AM EST.

Post edited April 19, 2013 at 3:49 AM EST.

Post edited April 19, 2013 at 3:50 AM EST.


OSP@SG blog
OSP@SG Digital Library


OSP Projects:
Open Source Physics - EJS Modeling
Tracker
Physlet Physics
Physlet Quantum Physics
STP Book