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.

Interactive objects

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

How to assign code at drawing panel objects?
Carlos Garcia
2 Posts


I'm trying to make a boardgame app with EJS and I need to have interactive objects.
The problem I have is when I put one token, picture or something that must be interactive, I don't know how to do when I press on it it does something. I have the "On press" option, but it only let me assign a java pre-defined function.

Thank you!

Current Replies - View all
Re: How to assign code at...   (Carlos Garcia - )
OSP Projects:
Open Source Physics - EJS Modeling
Physlet Physics
Physlet Quantum Physics
STP Book