JDK-2223179 : [macosx] Modal dialog lost focus
  • Type: Backport
  • Backport of: JDK-7124376
  • Component: client-libs
  • Sub-Component: java.awt
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2012-04-09
  • Updated: 2012-07-26
  • Resolved: 2012-07-26
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 7 JDK 8
7u6 b20Fixed 8Fixed
Comments
EVALUATION One can easily reproduce this bug by launching SwingSet2, choosing JOptionPane demo and then clicking "Show Message Dialog" button. Now, click on the "SwingSet2" window title bar and you'll see the window rapidly gaining and loosing focus. The reason it happens is because we don't prevent modally blocked NSWindows from becoming main/key.
29-05-2012