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

On Solaris,TextArea triggers MouseEntered when the mouse is inside the component

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.2
    • 1.4.0
    • client-libs
    • mantis
    • sparc
    • solaris
    • Verified

      MouseEntered should be triggered only when the mouse enters the component and
      MouseExited should be triggered when the mouse goes out of the component.
      In TextArea, when i moved the mouse inside the component MouseMoved events
      are triggered properly. But when i slowly took the mouse outside the component
      that is towards the scrollbars, i could see a MouseEntered event being triggered
      followed by MouseExited. (before actually mouse enters the scrollbar)

      When i watched that closely, i could see a small border between the component
      and it's scrollbars. Whenever the mouse enters / leaves that border (slowly)
      MouseEntered and MouseExited are getting triggered.
      This can also be noticed by moving the mouse from the scrollbar to the component
      and you could see a MouseExited event being triggered when the mouse actually
      enters the component (but mouse comes out of the border). Herewith i have given
      a sample code which reproduces this bug.

      How to reproduce the bug:
      Compile and run the sample code. Move the mouse from the middle of the component
      slowly towards any of the scrollbars. When it is about to enter the scrollbar,
      you could notice the MouseEntered event being triggered by TextArea. (When the
      mouse actually enters the border)
      This is noticed only on solaris and it is working fine on windows.
      I tested this against build-63.

            kdmsunw Kdm Kdm (Inactive)
            pmohansunw Praveen Mohan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: