This site requires JavaScript, please enable it in your browser!
Greenfoot
Username
Password
Remember Me?
Sign Up, Lost Password
Activity
About
Documentation
Download
Discuss
Scenarios
edparrish
wrote ...
2011/8/16
Detecting if Scenario is an Application or Applet
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
2011/8/16
#
Untested, but I think
System.getSecurityManager()
would return non-null for an applet and null for an application.
edparrish
2011/8/16
#
Thanks davmac! That worked perfectly. Regards, Ed Parrish
You need to login to post a reply.
X