JDK-6827035 : mousePressed not triggered when BUTTON1 pressed as normally on Win7
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 6u14,6u15,7,8,8u11
  • Priority: P3
  • Status: Resolved
  • Resolution: Won't Fix
  • OS: windows_2008,windows_7
  • CPU: x86
  • Submitted: 2009-04-07
  • Updated: 2014-08-15
  • Resolved: 2013-10-18
Related Reports
Relates :  
Description
In our awt automation test on windows 7 x86 using 6u14 b03, we found the mouse pressing event sequence only for BUTTON1 is not correct as other two buttons. From our test code, we issue a BUTTON1 pressed action followed by a key released action and a key clicked action. And we are listening these events from another listener. But we noticed that the key pressed event can only be caught just before the key released action instead of just after the key pressed action. That means if we don't issue the other actions like key released or key clicked, this key pressed event can not be caught as normally.

Comments
RULE AWT_SystemTray/Automated/TrayIconEventModifiers RULE AWT_SystemTray/Automated/ModalityTest
15-08-2014

AWT_SystemTray/Automated/SecurityCheck/FunctionalityCheck AWT_SystemTray/Automated/TrayIconEvents
03-06-2014

Release team: We discussed this and since it's an issue due to the OS rather than the JDK we decided to close this as WNF.
18-10-2013

jdk8: SQE OK to defer
15-10-2013

8-defer-request: this is an issue from 2009 6u14 and later 7 GA. SQE added affected version 8, but this is a defer request again
11-10-2013

EVALUATION Formally speaking, the CR is not a regression. On Windows 7, this functionality has never been working correctly. The same problem could be observed in JDK6 - that is, the test also fails on the first release with the TrayIcon feature.
20-12-2010

EVALUATION Below are some steps to demonstrate that the problem is reproducible with non-Java applications. 1. Open Spy++ application 2. Spy on WM_LBUTTONDOWN / WM_LBUTTONUP messages sent to all windows in system 3. Press the left mouse button on a tray icon (don't release it for a while) 4. Note that there is no WM_LBUTTONDOWN messages sent to the tray icon 5. Release the left mouse button 6. Both messages (WM_LBUTTONDOWN / WM_LBUTTONUP) sent to the tray icon upon the left mouse release Need to submit a bug against Windows 7 on the behavior.
28-07-2009