RFR: 8294067: [macOS] javax/swing/JComboBox/6559152/bug6559152.java Cannot select an item from popup with the ENTER key.

Phil Race prr at openjdk.org
Tue Sep 20 16:42:13 UTC 2022


On Tue, 20 Sep 2022 15:57:24 GMT, Damon Nguyen <dnguyen at openjdk.org> wrote:

> The newly fix-sized JComboBox has its dropdown menu opened with this test's mouse click. The goal of the test is to focus the JComboBox, open the dropdown menu, and select the 2nd option of the menu using arrow keys and ENTER key. Since the JComboBox is focused without the click already, the click can be removed.

I note that the mouse click was added to stabilise this test in this PR
https://github.com/openjdk/jdk/pull/1666/files#diff-92c0c78d42028b3d6bb57bd687afe28b5947ba8e3ccae9025a5a62214a21930c

@prsadhuk was it really needed ?

The comment back then was 
"and also made this test's frame gain focus by clicking on the frame, as it seems the frame does not get focus sometime so that keyevent does not get registered causing it to fail."

-------------

PR: https://git.openjdk.org/jdk/pull/10359



More information about the client-libs-dev mailing list