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

Damon Nguyen dnguyen at openjdk.org
Tue Feb 25 19:44:06 UTC 2025


On Tue, 4 Feb 2025 23:35:32 GMT, Damon Nguyen <dnguyen at openjdk.org> wrote:

> Redo for JComboBox infinite scrolling issue. The issue is that when a scrollbar is clicked and held, if the user switches focus (ex: ALT+TAB) while scrolling, when focused is returned to the scrolling application, the JComboBox will still be scrolling even though nothing it being clicked.
> 
> Previously, a KeyboardFocusListener was added to determine the focus. However, there was a memory leak on Windows and Ubuntu. This current implementation uses the current FocusManager and is overall a cleaner, simpler approach.
> 
> CI testing is green on all platforms.

This pull request has now been integrated.

Changeset: d4fdc796
Author:    Damon Nguyen <dnguyen at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/d4fdc796aac8ece930c28579d285b21acf8e6ddb
Stats:     164 lines in 2 files changed: 160 ins; 2 del; 2 mod

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

Co-authored-by: Alexander Zvegintsev <azvegint at openjdk.org>
Reviewed-by: azvegint, psadhukhan, honkar

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

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


More information about the client-libs-dev mailing list