JDK-6565719 : REG: Items are not selectable using mouse, from Choice added to a Window - Win32
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 7
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2007-06-05
  • Updated: 2011-01-19
  • Resolved: 2007-07-03
Related Reports
Duplicate :  
Description
I have added a choice to a focusable java.awt.Window and I have added few items to it. I have made the window as well as it's parent visible. When I try to select the items from the choice a few times, First time I was able to select but subsequent times, the items are not selectable using mouse. When I click on the item, neither the item is getting selected nor the drop-down closes. 

This is reproducible only from JDK7-b02 and not reproducible on b01. Hence it is a regression from JDK6. Not reproducible on unix platforms. Choice works fine when added to Frame/Dialog.

Run the attached test. Click on the choice added to the window. Try selecting an item. Repeat this a few times and you will see that the mouse click is no longer able to select the item from the choice.

Comments
EVALUATION Not reproducible after 6519005 fix.
03-07-2007

EVALUATION In 7.0-b02 there was a fix (6359035) that potentially could affect all the AWT components, on Windows platform. This issue looks like to be caused by it, however it can be also caused by some focus fixed integrated into the same build. I have also noticed another thing (also with 1.5 and 6.0). When I click on the choice with mouse, the titlebar of the windows's parent Frame flashes like it deactivates and instantly activates back. It looks like we have a very strange sequence of events here in the test...
05-06-2007