jdk/src/share/classes/java/awt/Dialog.java
changeset 21278 ef8a3a2a72f2
parent 20172 f48935a247ec
child 22060 cd4f9d7dbeda
equal deleted inserted replaced
21277:bd380b80f9ea 21278:ef8a3a2a72f2
   336      * Constructs an initially invisible <code>Dialog</code> with the specified
   336      * Constructs an initially invisible <code>Dialog</code> with the specified
   337      * owner <code>Frame</code> and modality and an empty title.
   337      * owner <code>Frame</code> and modality and an empty title.
   338      *
   338      *
   339      * @param owner the owner of the dialog or <code>null</code> if
   339      * @param owner the owner of the dialog or <code>null</code> if
   340      *     this dialog has no owner
   340      *     this dialog has no owner
   341      * @param modal specifes whether dialog blocks user input to other top-level
   341      * @param modal specifies whether dialog blocks user input to other top-level
   342      *     windows when shown. If <code>false</code>, the dialog is <code>MODELESS</code>;
   342      *     windows when shown. If <code>false</code>, the dialog is <code>MODELESS</code>;
   343      *     if <code>true</code>, the modality type property is set to
   343      *     if <code>true</code>, the modality type property is set to
   344      *     <code>DEFAULT_MODALITY_TYPE</code>
   344      *     <code>DEFAULT_MODALITY_TYPE</code>
   345      * @exception java.lang.IllegalArgumentException if the <code>owner</code>'s
   345      * @exception java.lang.IllegalArgumentException if the <code>owner</code>'s
   346      *    <code>GraphicsConfiguration</code> is not from a screen device
   346      *    <code>GraphicsConfiguration</code> is not from a screen device
   385      *
   385      *
   386      * @param owner the owner of the dialog or <code>null</code> if
   386      * @param owner the owner of the dialog or <code>null</code> if
   387      *     this dialog has no owner
   387      *     this dialog has no owner
   388      * @param title the title of the dialog or <code>null</code> if this dialog
   388      * @param title the title of the dialog or <code>null</code> if this dialog
   389      *     has no title
   389      *     has no title
   390      * @param modal specifes whether dialog blocks user input to other top-level
   390      * @param modal specifies whether dialog blocks user input to other top-level
   391      *     windows when shown. If <code>false</code>, the dialog is <code>MODELESS</code>;
   391      *     windows when shown. If <code>false</code>, the dialog is <code>MODELESS</code>;
   392      *     if <code>true</code>, the modality type property is set to
   392      *     if <code>true</code>, the modality type property is set to
   393      *     <code>DEFAULT_MODALITY_TYPE</code>
   393      *     <code>DEFAULT_MODALITY_TYPE</code>
   394      * @exception java.lang.IllegalArgumentException if the <code>owner</code>'s
   394      * @exception java.lang.IllegalArgumentException if the <code>owner</code>'s
   395      *    <code>GraphicsConfiguration</code> is not from a screen device
   395      *    <code>GraphicsConfiguration</code> is not from a screen device
   414      * <code>Frame</code>, title, modality, and <code>GraphicsConfiguration</code>.
   414      * <code>Frame</code>, title, modality, and <code>GraphicsConfiguration</code>.
   415      * @param owner the owner of the dialog or <code>null</code> if this dialog
   415      * @param owner the owner of the dialog or <code>null</code> if this dialog
   416      *     has no owner
   416      *     has no owner
   417      * @param title the title of the dialog or <code>null</code> if this dialog
   417      * @param title the title of the dialog or <code>null</code> if this dialog
   418      *     has no title
   418      *     has no title
   419      * @param modal specifes whether dialog blocks user input to other top-level
   419      * @param modal specifies whether dialog blocks user input to other top-level
   420      *     windows when shown. If <code>false</code>, the dialog is <code>MODELESS</code>;
   420      *     windows when shown. If <code>false</code>, the dialog is <code>MODELESS</code>;
   421      *     if <code>true</code>, the modality type property is set to
   421      *     if <code>true</code>, the modality type property is set to
   422      *     <code>DEFAULT_MODALITY_TYPE</code>
   422      *     <code>DEFAULT_MODALITY_TYPE</code>
   423      * @param gc the <code>GraphicsConfiguration</code> of the target screen device;
   423      * @param gc the <code>GraphicsConfiguration</code> of the target screen device;
   424      *     if <code>null</code>, the default system <code>GraphicsConfiguration</code>
   424      *     if <code>null</code>, the default system <code>GraphicsConfiguration</code>
   486      *
   486      *
   487      * @param owner the owner of the dialog or <code>null</code> if this
   487      * @param owner the owner of the dialog or <code>null</code> if this
   488      *     dialog has no owner
   488      *     dialog has no owner
   489      * @param title the title of the dialog or <code>null</code> if this
   489      * @param title the title of the dialog or <code>null</code> if this
   490      *     dialog has no title
   490      *     dialog has no title
   491      * @param modal specifes whether dialog blocks user input to other top-level
   491      * @param modal specifies whether dialog blocks user input to other top-level
   492      *     windows when shown. If <code>false</code>, the dialog is <code>MODELESS</code>;
   492      *     windows when shown. If <code>false</code>, the dialog is <code>MODELESS</code>;
   493      *     if <code>true</code>, the modality type property is set to
   493      *     if <code>true</code>, the modality type property is set to
   494      *     <code>DEFAULT_MODALITY_TYPE</code>
   494      *     <code>DEFAULT_MODALITY_TYPE</code>
   495      * @exception IllegalArgumentException if the <code>owner</code>'s
   495      * @exception IllegalArgumentException if the <code>owner</code>'s
   496      *    <code>GraphicsConfiguration</code> is not from a screen device
   496      *    <code>GraphicsConfiguration</code> is not from a screen device
   517      *
   517      *
   518      * @param owner the owner of the dialog or <code>null</code> if this
   518      * @param owner the owner of the dialog or <code>null</code> if this
   519      *     dialog has no owner
   519      *     dialog has no owner
   520      * @param title the title of the dialog or <code>null</code> if this
   520      * @param title the title of the dialog or <code>null</code> if this
   521      *     dialog has no title
   521      *     dialog has no title
   522      * @param modal specifes whether dialog blocks user input to other top-level
   522      * @param modal specifies whether dialog blocks user input to other top-level
   523      *     windows when shown. If <code>false</code>, the dialog is <code>MODELESS</code>;
   523      *     windows when shown. If <code>false</code>, the dialog is <code>MODELESS</code>;
   524      *     if <code>true</code>, the modality type property is set to
   524      *     if <code>true</code>, the modality type property is set to
   525      *     <code>DEFAULT_MODALITY_TYPE</code>
   525      *     <code>DEFAULT_MODALITY_TYPE</code>
   526      * @param gc the <code>GraphicsConfiguration</code> of the target screen device;
   526      * @param gc the <code>GraphicsConfiguration</code> of the target screen device;
   527      *     if <code>null</code>, the default system <code>GraphicsConfiguration</code>
   527      *     if <code>null</code>, the default system <code>GraphicsConfiguration</code>
   762     }
   762     }
   763 
   763 
   764     /**
   764     /**
   765      * Indicates whether the dialog is modal.
   765      * Indicates whether the dialog is modal.
   766      * <p>
   766      * <p>
   767      * This method is obsolete and is kept for backwards compatiblity only.
   767      * This method is obsolete and is kept for backwards compatibility only.
   768      * Use {@link #getModalityType getModalityType()} instead.
   768      * Use {@link #getModalityType getModalityType()} instead.
   769      *
   769      *
   770      * @return    <code>true</code> if this dialog window is modal;
   770      * @return    <code>true</code> if this dialog window is modal;
   771      *            <code>false</code> otherwise
   771      *            <code>false</code> otherwise
   772      *
   772      *