On Mon, 16 Mar 2026 19:30:23 GMT, Andy Goryachev <[email protected]> wrote:

> `MultipleSelectionModelBase` is also used by `TreeView` and `ListView`, so 
> I'd expect the same issue there as well. However, that's not exactly what I 
> see (I've updated the standalone monkey tester to include a 500,000 item 
> option - https://github.com/andy-goryachev-oracle/MonkeyTest ).
> 
> In the `ListView`, there seems to be no problem deselecting after selection 
> all 500,000 items (there is a related PR #2109 , with a reproducer that does 
> not seem to select anything, I am not sure about the exact use case there).
> 
> In the `TreeView`, on the other hand, selecting all locks up the UI (I 
> pressed cmd-A in the tree view page a few minutes ago, the beach ball is 
> still spinning). This occurs with this PR fix as well - why?
> 

I'm not as familiar with `TreeView`, but I will look into it. `ListView` has 
different deselection problems: see my other PR 
https://github.com/openjdk/jfx/pull/2109 

I will work on a headless test. Currently, deselection is an O(n^2) operation 
whereas selectAll is O(n), so the difference in time diverges quite rapidly.

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

PR Comment: https://git.openjdk.org/jfx/pull/2100#issuecomment-4070324514

Reply via email to