JDK-6375565 : Modal dialog does not flash when clicking parent window in Windows XP
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 6
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2006-01-23
  • Updated: 2011-02-16
  • Resolved: 2006-03-20
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 b77Fixed
Related Reports
Relates :  
Description
FULL PRODUCT VERSION :
java version "1.6.0-rc"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.6.0-rc-b66)
Java HotSpot(TM) Client VM (build 1.6.0-rc-b66, mixed mode, sharing)

ADDITIONAL OS VERSION INFORMATION :
Windows XP

A DESCRIPTION OF THE PROBLEM :
In Windows XP when the user clicks on the parent of a modal window, the modal window flashes to grab the user's attention.  In Java (even with the native look and feel) this does not happen.

This can be reproduced in the Windows file explorer by going to menu Tools > Folder Options.  Then click on the menu again -> Dialog flashes.

A java example is Netbeans menu File > Open Project.


REPRODUCIBILITY :
This bug can be reproduced always.

Comments
EVALUATION I do not agree with the submitter that this is a regression. Say, we have a simple test: Frame f = new Frame("F"); f.setBounds(100, 100, 100, 100); f.setVisible(true); Frame g = new Frame("G"); g.setBounds(300, 100, 100, 100); g.setVisible(true); Dialog d = new Dialog(f, "D", true); d.setBounds(100, 300, 100, 100); d.setVisible(true); This code is valid both for 6.0 and earlier releases, it should work with all J2SE releases. When the test is launched, two frames are shown and then blocked by modal dialog. Run the test both with 6.0 and 5.0, then click on frame F and frame G. With 5.0 dialog D flashes and a standard speaker sound appears. If G is clicked, or the test is run with 6.0 and any of F or G clicked, then D doesn't flash and the same sound is played. Such behaviour of the test with 5.0 is caused by the fact that F is a parent of D. In 5.0 some of modality features were implemented with native platform support, for example it is Win32 that causes D to flash, while in 6.0 everything is implemented in AWT side. So I consider this CR as an RFE to add flashing effect while clicking on any of blocked windows, instead of regression.
27-01-2006

EVALUATION This appears to be a regression in Mustang. It works fine in 5.0. Under Mustang, the modal dialog doesn't flash, and a different sound is made.
23-01-2006