Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6307415

TrayIcon triggers Window Events when listened through AWTEventListener

XMLWordPrintable

    • generic
    • generic

      I have added an AWTEventListener to the Toolkit to listen to all the Window events. I am surprised to see lot of WindowActivated /DeActivated, Window Focus events being triggered when I click on the TrayIcon. My application has only one frame and it looks like the source of these events is not the frame that I have created. This is seen on Win32 as well as SolarisSparc10 with all Mustang builds. You can notice it well especially when the popup menu added to the tray icon gets opened and disposed.

      The spec does not say anything about the WindowEvents. I am not quite sure whether these events must be allowed to be listened through AWTEventListener.

      I have attached a sample test that reproduces this bug.

            art Artem Ananiev (Inactive)
            pmohansunw Praveen Mohan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: