JDK-6367771 : Specification for modal dialog hidden should be corrected
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 6
  • Priority: P2
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: x86
  • Submitted: 2005-12-29
  • Updated: 2017-05-16
  • Resolved: 2006-03-04
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 6
6 b75Fixed
Related Reports
Relates :  
Relates :  
Description
By now the spec is following:

    <p>
      <u>Hiding a modal dialog</u><br>
      When the modal dialog that currently has focus is hidden, its owner, if
      unblocked, may become the active window&#151; however, the actual behavior is
      unspecified and platform-dependent. If the modal dialog to be hidden doe not have
       focus, the active window remains unchanged.
    </p>

We should mention that the previous active window may become the active window in case of a modal dialog without owner.

Comments
EVALUATION corrected java/awt/doc-files/Modality.html <p> <u>Hiding a modal dialog</u><br> When the modal dialog that currently has focus is hidden, it is unspecified and platform-dependent, which other window will become the active window. Any of the following may become the active window: <ol> <li>The owner of the modal dialog - if the owner is unblocked. </li><li>The <code>Window</code>, which was active before this modal dialog gained focus - if the owner of the modal dialog is absent or is blocked. </li></ol> If the modal dialog to be hidden does not have focus, the active window remains unchanged. </p>
30-12-2005