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

PIT: TrayIcon triggers MouseEvents for canvas when listened thro' AWTEventListener, XToolkit

XMLWordPrintable

    • Cause Known
    • sparc
    • solaris_10

      I am adding a tray icon to the notification area and I am adding an AWTEventListener to the toolkit to listen mouse and action events. When I move the mouse inside the tray icon, I am getting MouseEntered and MouseExited events, though the spec says tray icons do not support these events.

      When I click inside the icon, I am getting lot of mouse events from Canvas that is being used inside the icon. All these events must actually be consumed and should not be dispatched to AWTEventListener. Refer comments section for more details.

      This is reproducible only on unix plaforms and not on Win32. I reproduced it on Sol10-JDS and Linux AS3.0. Here is the PIT build:
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.6.0-awt.pit-int-awt-blade-dm97671_11_May_2005_10_32-b00)
      Java HotSpot(TM) Server VM (build 1.6.0-ea-b35, mixed mode)

      I have attached a sample test. Execute it on XToolkit. Move the mouse over tray icon and click it. You would see mouse events triggered by canvas on the console.
      ###@###.### 2005-05-14 11:34:19 GMT

            ant Anton Tarasov (Inactive)
            pmohansunw Praveen Mohan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Imported:
              Indexed: