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.