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.