This method of the UIPermission Class sets the ability to use file dialog boxes. If flag is set to true, the permission object will indicate that top-level windows require warning banners; otherwise, it will indicate that top-level windows do not require warning banners.
public void setFileDialogsAllowed(boolean flag);
flag | The flag that indicates whether top-level windows should require warning banners. |