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.

FileChooser and applets

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

FileChooser and applets/standalone programs
Juan M. Aguirregabiria
12 Posts

When a FileChooser is included in a simulation and the later is used as an applet a security exception is raised and the applet fails.

This is fine, but unfortunately it also happens when _isApplet() is used to make sure FileChooser is only used when the simulation is not run as a standalone program, as in the enclosed simulation.

Is there any workaround to allow the same source to generate simulations to be run standalone and as an applet?


Attached File: FileChooser.zip

Current Replies - View all
Re: FileChooser and apple...   (Francisco Esquembre - )
OSP Projects:
Open Source Physics - EJS Modeling
Physlet Physics
Physlet Quantum Physics
STP Book