This method of the StandardSecurityManager Class determines whether classes within the current execution context, based on the call stack of the current thread, are allowed to display and use file dialog boxes (java.awt.FileDialog).
public void checkFileDialog();
The check succeeds only if all the classes found on the call stack possess UIPermissions, and if those permissions allow the creation of file dialog boxes.
SecurityException if the security check fails.