Window.getWarningString

Window.getWarningString

Class Overview | Class Members | This Package | All Packages

Syntax
public final String getWarningString()
Returns
the warning string for this window.
Description
Gets the warning string that is displayed with this window. If this window is insecure, the warning string is displayed somewhere in the visible area of the window. A window is insecure if there is a security manager, and the security manager's checkTopLevelWindow method returns false when this window is passed to it as an argument.

If the window is secure, then getWarningString returns null. If the window is insecure, this methods checks for the system property awt.appletWarning and returns the string value of that property.

See Also
checkTopLevelWindow