RFR: 8344981: [REDO] JDK-6672644 JComboBox still scrolling if switch to another window and return back [v3]

Damon Nguyen dnguyen at openjdk.org
Tue Feb 11 19:16:36 UTC 2025


On Sat, 8 Feb 2025 01:04:26 GMT, Harshitha Onkar <honkar at openjdk.org> wrote:

>> I was thinking more of `if (!par.isEnabled() !! focusOwner == null)` as the parent is still JFrame.
>> 
>> But, I was trying to run the testcase mentioned in the JBS and this regression test but I am not able to reproduce without the fix..
>> It doesn't keep on scrolling when it regains focus in my windows 11 machine..
>
> @prsadhuk  I wasn't able to replicate the issue first few times. When I changed the no. of combobox items to 1000, the issue was reproducible. 
> 
> I think the issue with 100 combobox items is that the end of combobox is reached quickly while trying to ALT +TAB at the same time and it becomes difficult to replicate the issue unless it is done quickly.
> 
> @DamonGuy Maybe it is good to increase the no. of combobox items to reproduce the issue more consistently.

I did update the test to use 1000 items instead. However, the automated test that Alexander provided seems to work well with 100 as well. I see no issues in testing with 100, so I left it at 100 again.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/23451#discussion_r1951450446


More information about the client-libs-dev mailing list