src/share/classes/java/awt/Dialog.java
Print this page
*** 668,678 ****
throw new IllegalArgumentException("Wrong parent window");
}
this.title = title;
setModalityType(modalityType);
! SunToolkit.checkAndSetPolicy(this, false);
}
/**
* Constructs an initially invisible <code>Dialog</code> with the
* specified owner <code>Window</code>, title, modality and
--- 668,678 ----
throw new IllegalArgumentException("Wrong parent window");
}
this.title = title;
setModalityType(modalityType);
! SunToolkit.checkAndSetPolicy(this);
}
/**
* Constructs an initially invisible <code>Dialog</code> with the
* specified owner <code>Window</code>, title, modality and
*** 719,729 ****
throw new IllegalArgumentException("wrong owner window");
}
this.title = title;
setModalityType(modalityType);
! SunToolkit.checkAndSetPolicy(this, false);
}
/**
* Construct a name for this component. Called by getName() when the
* name is null.
--- 719,729 ----
throw new IllegalArgumentException("wrong owner window");
}
this.title = title;
setModalityType(modalityType);
! SunToolkit.checkAndSetPolicy(this);
}
/**
* Construct a name for this component. Called by getName() when the
* name is null.