
A
TOOLKIT_MODAL dialog blocks all top-level windows run
from the same toolkit except those from its own child hierarchy. If there
are several applets launched in a browser, all of them run with the same
toolkit; thus, a toolkit-modal dialog displayed by an applet may affect
other applets and all windows of the browser instance which embeds the
Java runtime environment for this toolkit.
Special
AWTPermission "toolkitModality" must be granted to use
toolkit-modal dialogs. If a
TOOLKIT_MODAL dialog is being created
and this permission is not granted, a
SecurityException will be
thrown, and no dialog will be created. If a modality type is being changed
to
TOOLKIT_MODAL and this permission is not granted, a
SecurityException will be thrown, and the modality type will
be left unchanged.