This site requires JavaScript, please enable it in your browser!
Greenfoot back
edparrish
edparrish wrote ...

2011/8/16

Detecting if Scenario is an Application or Applet

edparrish edparrish

2011/8/16

#
Is there a way to detect if your scenario is running as an application or an applet? I ask because of file I/O operations in a scenario I am developing.
davmac davmac

2011/8/16

#
Untested, but I think System.getSecurityManager() would return non-null for an applet and null for an application.
edparrish edparrish

2011/8/16

#
Thanks davmac! That worked perfectly. Regards, Ed Parrish
You need to login to post a reply.