Is there a way to check for a permission without running the risk of an Exception being thrown? I would like to be able to check the permissions and change the GUI accordingly, but I don't like the idea of catching a lot of Exceptions.
Joined: Mar 22, 2005
You could encapsulate the checking and try/catch in a method which just returns a boolean. The SecurityManager.checkPermission(Permission) method would help with this.