RFR: 8371657: [macosx] Programmatically selecting/deselecting List item triggers an ItemEvent
Alexey Ivanov
aivanov at openjdk.org
Thu Nov 27 19:14:53 UTC 2025
On Thu, 27 Nov 2025 01:45:06 GMT, Sergey Bylokhov <serb at openjdk.org> wrote:
> As of now, it should not change. However, this is lwawt, which uses the active swing l&f, and I do not see a reason why someone could not change that based on a design choice.
I can't come up with any reason where `makeVisible` changes the current selection. The purpose of the method is to ensure the item at the specified index is visible which involves scrolling the list if the item isn't currently visible.
I should never ever change the selected items.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/28245#discussion_r2569806110
More information about the client-libs-dev
mailing list