I have a created a Window with an invisible parent frame and I have added a choice to the window. When I make the window visible, window becomes non-focusable due to lack of an active window. Choice is also non-focusable and does not respond to keyboard inputs. But when I click on it, the drop-down that is shown responds to keyboard inputs and I am able to select items using keyboard. This is incorrect.
This is reproducible only on XToolkit and not on win32. This is not reproducible on JDK6-b36 but reproducible on b40. Hence it is a regression introduced in JDK6 on XToolkit. Same behavior is seen for null-parent window as well.
Run the attached test. Click on the choice. Try navigating through the items using keyboard. If items are selected, bug is reproduced.