src/java.desktop/share/classes/java/awt/Dialog.java
Print this page
*** 258,268 ****
* it isn't blocked by document-modal dialogs from outside of its
* child hierarchy.
* The "toolkitModality" <code>AWTPermission</code> must be granted
* for this exclusion. If an exclusion property is being changed to
* <code>TOOLKIT_EXCLUDE</code> and this permission is not granted, a
! * <code>SecurityEcxeption</code> will be thrown, and the exclusion
* property will be left unchanged.
*/
TOOLKIT_EXCLUDE
};
--- 258,268 ----
* it isn't blocked by document-modal dialogs from outside of its
* child hierarchy.
* The "toolkitModality" <code>AWTPermission</code> must be granted
* for this exclusion. If an exclusion property is being changed to
* <code>TOOLKIT_EXCLUDE</code> and this permission is not granted, a
! * <code>SecurityException</code> will be thrown, and the exclusion
* property will be left unchanged.
*/
TOOLKIT_EXCLUDE
};
*** 552,562 ****
* Constructs an initially invisible, modeless <code>Dialog</code> with the
* specified owner <code>Window</code> and an empty title.
*
* @param owner the owner of the dialog. The owner must be an instance of
* {@link java.awt.Dialog Dialog}, {@link java.awt.Frame Frame}, any
! * of their descendents or <code>null</code>
*
* @exception java.lang.IllegalArgumentException if the <code>owner</code>
* is not an instance of {@link java.awt.Dialog Dialog} or {@link
* java.awt.Frame Frame}
* @exception java.lang.IllegalArgumentException if the <code>owner</code>'s
--- 552,562 ----
* Constructs an initially invisible, modeless <code>Dialog</code> with the
* specified owner <code>Window</code> and an empty title.
*
* @param owner the owner of the dialog. The owner must be an instance of
* {@link java.awt.Dialog Dialog}, {@link java.awt.Frame Frame}, any
! * of their descendants or <code>null</code>
*
* @exception java.lang.IllegalArgumentException if the <code>owner</code>
* is not an instance of {@link java.awt.Dialog Dialog} or {@link
* java.awt.Frame Frame}
* @exception java.lang.IllegalArgumentException if the <code>owner</code>'s
*** 576,586 ****
* Constructs an initially invisible, modeless <code>Dialog</code> with
* the specified owner <code>Window</code> and title.
*
* @param owner the owner of the dialog. The owner must be an instance of
* {@link java.awt.Dialog Dialog}, {@link java.awt.Frame Frame}, any
! * of their descendents or <code>null</code>
* @param title the title of the dialog or <code>null</code> if this dialog
* has no title
*
* @exception java.lang.IllegalArgumentException if the <code>owner</code>
* is not an instance of {@link java.awt.Dialog Dialog} or {@link
--- 576,586 ----
* Constructs an initially invisible, modeless <code>Dialog</code> with
* the specified owner <code>Window</code> and title.
*
* @param owner the owner of the dialog. The owner must be an instance of
* {@link java.awt.Dialog Dialog}, {@link java.awt.Frame Frame}, any
! * of their descendants or <code>null</code>
* @param title the title of the dialog or <code>null</code> if this dialog
* has no title
*
* @exception java.lang.IllegalArgumentException if the <code>owner</code>
* is not an instance of {@link java.awt.Dialog Dialog} or {@link
*** 602,612 ****
* Constructs an initially invisible <code>Dialog</code> with the
* specified owner <code>Window</code> and modality and an empty title.
*
* @param owner the owner of the dialog. The owner must be an instance of
* {@link java.awt.Dialog Dialog}, {@link java.awt.Frame Frame}, any
! * of their descendents or <code>null</code>
* @param modalityType specifies whether dialog blocks input to other
* windows when shown. <code>null</code> value and unsupported modality
* types are equivalent to <code>MODELESS</code>
*
* @exception java.lang.IllegalArgumentException if the <code>owner</code>
--- 602,612 ----
* Constructs an initially invisible <code>Dialog</code> with the
* specified owner <code>Window</code> and modality and an empty title.
*
* @param owner the owner of the dialog. The owner must be an instance of
* {@link java.awt.Dialog Dialog}, {@link java.awt.Frame Frame}, any
! * of their descendants or <code>null</code>
* @param modalityType specifies whether dialog blocks input to other
* windows when shown. <code>null</code> value and unsupported modality
* types are equivalent to <code>MODELESS</code>
*
* @exception java.lang.IllegalArgumentException if the <code>owner</code>
*** 635,645 ****
* Constructs an initially invisible <code>Dialog</code> with the
* specified owner <code>Window</code>, title and modality.
*
* @param owner the owner of the dialog. The owner must be an instance of
* {@link java.awt.Dialog Dialog}, {@link java.awt.Frame Frame}, any
! * of their descendents or <code>null</code>
* @param title the title of the dialog or <code>null</code> if this dialog
* has no title
* @param modalityType specifies whether dialog blocks input to other
* windows when shown. <code>null</code> value and unsupported modality
* types are equivalent to <code>MODELESS</code>
--- 635,645 ----
* Constructs an initially invisible <code>Dialog</code> with the
* specified owner <code>Window</code>, title and modality.
*
* @param owner the owner of the dialog. The owner must be an instance of
* {@link java.awt.Dialog Dialog}, {@link java.awt.Frame Frame}, any
! * of their descendants or <code>null</code>
* @param title the title of the dialog or <code>null</code> if this dialog
* has no title
* @param modalityType specifies whether dialog blocks input to other
* windows when shown. <code>null</code> value and unsupported modality
* types are equivalent to <code>MODELESS</code>
*** 683,693 ****
* specified owner <code>Window</code>, title, modality and
* <code>GraphicsConfiguration</code>.
*
* @param owner the owner of the dialog. The owner must be an instance of
* {@link java.awt.Dialog Dialog}, {@link java.awt.Frame Frame}, any
! * of their descendents or <code>null</code>
* @param title the title of the dialog or <code>null</code> if this dialog
* has no title
* @param modalityType specifies whether dialog blocks input to other
* windows when shown. <code>null</code> value and unsupported modality
* types are equivalent to <code>MODELESS</code>
--- 683,693 ----
* specified owner <code>Window</code>, title, modality and
* <code>GraphicsConfiguration</code>.
*
* @param owner the owner of the dialog. The owner must be an instance of
* {@link java.awt.Dialog Dialog}, {@link java.awt.Frame Frame}, any
! * of their descendants or <code>null</code>
* @param title the title of the dialog or <code>null</code> if this dialog
* has no title
* @param modalityType specifies whether dialog blocks input to other
* windows when shown. <code>null</code> value and unsupported modality
* types are equivalent to <code>MODELESS</code>
*** 794,804 ****
* until it is hidden and then shown again.
*
* @param modal specifies whether dialog blocks input to other windows
* when shown; calling to <code>setModal(true)</code> is equivalent to
* <code>setModalityType(Dialog.DEFAULT_MODALITY_TYPE)</code>, and
! * calling to <code>setModal(false)</code> is equvivalent to
* <code>setModalityType(Dialog.ModalityType.MODELESS)</code>
*
* @see java.awt.Dialog#DEFAULT_MODALITY_TYPE
* @see java.awt.Dialog.ModalityType#MODELESS
* @see java.awt.Dialog#isModal
--- 794,804 ----
* until it is hidden and then shown again.
*
* @param modal specifies whether dialog blocks input to other windows
* when shown; calling to <code>setModal(true)</code> is equivalent to
* <code>setModalityType(Dialog.DEFAULT_MODALITY_TYPE)</code>, and
! * calling to <code>setModal(false)</code> is equivalent to
* <code>setModalityType(Dialog.ModalityType.MODELESS)</code>
*
* @see java.awt.Dialog#DEFAULT_MODALITY_TYPE
* @see java.awt.Dialog.ModalityType#MODELESS
* @see java.awt.Dialog#isModal
*** 924,934 ****
}
if (toFocus != null && time != null && isFocusable() &&
isEnabled() && !isModalBlocked()) {
// keep the KeyEvents from being dispatched
! // until the focus has been transfered
time.set(Toolkit.getEventQueue().getMostRecentKeyEventTime());
KeyboardFocusManager.getCurrentKeyboardFocusManager().
enqueueKeyEvents(time.get(), toFocus);
}
--- 924,934 ----
}
if (toFocus != null && time != null && isFocusable() &&
isEnabled() && !isModalBlocked()) {
// keep the KeyEvents from being dispatched
! // until the focus has been transferred
time.set(Toolkit.getEventQueue().getMostRecentKeyEventTime());
KeyboardFocusManager.getCurrentKeyboardFocusManager().
enqueueKeyEvents(time.get(), toFocus);
}