<AWT Dev> [10] JDK-8146537: TrayIcon Action Listener doesnt work in WIndows 10

Shashidhara Veerabhadraiah shashidhara.veerabhadraiah at oracle.com
Mon Nov 20 10:10:16 UTC 2017

Hi All, Please review a fix for the below bug:


Bug: https://bugs.openjdk.java.net/browse/JDK-8146537


Webrev: http://cr.openjdk.java.net/~sveerabhadra/8146537/webrev.00/


Summary: The windows GetKeyState() api provides the key state of the requested key as of that instant by sampling the current thread's key messages from the message queue. Any misses either a thread ran faster or slower it is possible to miss the key messages. This is the problem that's happening under windows 10 wherein the key states are being null for the mouse button press. This problem is mentioned in the msdn as well. On the other hand, a tray icon message click produces NIN_BALLOONUSERCLICK event only upon the left mouse button click and hence there is no check required for the same.


Thanks and regards,

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/awt-dev/attachments/20171120/eb55a93c/attachment.html>

More information about the awt-dev mailing list