This method of the UIPermission Class sets the ability to create a top-level window. If flag is set to true, the permission object will indicate that top-level window creation is allowed; otherwise, it will indicate that top level window creation is not allowed.
public void setTopLevelWindowCreationAllowed(boolean flag);
flag | The flag that indicates whether top-level window creation should be allowed. |