SecurityManager.checkTopLevelWindow
Class Overview | Class Members |
This Package |
All Packages
public boolean checkTopLevelWindow( Object window )
Parameters
- window
- the new window that is being created.
Returns
true if the caller is trusted to put up
top-level windows; false otherwise.
Description
Returns false if the calling
thread is not trusted to bring up the top-level window indicated
by the window argument. In this case, the caller can
still decide to show the window, but the window should include
some sort of visual warning. If the method returns
true, then the window can be shown without any
special restrictions.
See class Window for more information on trusted and
untrusted windows.
The checkSetFactory method for class
SecurityManager always returns false.
Exceptions
SecurityException
if creation is disallowed entirely.
See Also
Window