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: vinaad on May 21, 2018, 08:38:08 pm



Title: Would you like to be the first one to say this message is good?
Post by: vinaad on May 21, 2018, 08:38:08 pm
I would like to know if it is possible to instanceate (create them with the "new" constructor) java objects (like drawables,containers) in the custom code pages of ejs, or at least can i import in Ejs classes that do so? e.g. create a class "charge" that extends the Drawable object, import it in a Ejs-created Model-View-Control app and  by pressing one of the View's buttons to add a "charge" in the View's DrawingFrame. More details-> Book->Open Source Physics, chapter 10, Electrodynamics (Gould et al.)