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

PIT:Button on the parent frame loses focus when clicking a non-focusable comp on the child window

    XMLWordPrintable

    Details

    • Subcomponent:
    • CPU:
      x86
    • OS:
      windows_xp

      Description

      I have a Frame with few components in it. I have created a child window with a multi-selection list added to it. When I show the frame as well as window on the screen, the button on the parent frame is having the focus. Move the mouse over the list on the parent frame and move the mouse wheel. Check whether mouse wheel events are triggered on the console. Move the mouse over the list on the child window. Move the mouse wheel. Check whether mouse wheel events are triggered. Now click on one of the items in the list placed on the child window (BOTH THE LISTS ARE NON-FOCUSABLE). You will notice that the button on the parent frame loses focus. Also mouse wheel events are no longer triggered for any of the lists shown. This is incorrect. Clicking a non-focusable list on the child window should not remove focus from the button.

      This is reproducible only on Win32. This is reproducible only on the following PIT build:
      java version "awt.pit-jcg-win-03-2004-11-23-Tue-int.mustang"
      Java(TM) 2 Runtime Environment, Standard Edition (build awt.pit-jcg-win-03-2004-11-23-Tue-int.mustang)
      Java HotSpot(TM) Client VM (build 1.6.0-ea-b13, mixed mode)

      Not reproducible on Solaris / Linux with XToolkit.

      Run the attached test on Win32. You would see a frame and a child window. Make sure the button has the focus. Without clicking anything, keep the mouse pointers inside the lists and check whether mouse wheel events are triggered. Now keeping the focus on the button, click the non-focusable list on the child window. If button loses focus, then the bug is reproduced. After this focus transfer, mouse wheel events are no longer triggered for the lists.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: