On Tue, 17 Mar 2026 00:04:17 GMT, Ziad El Midaoui <[email protected]> 
wrote:

>> The bug occurs when showRoot is set to false on a root with no children, the 
>> expanded item count drops is 0 causing `isFocused(0)` to return false even 
>> though `focusedIndex` is still 0. When items are added afterwards the 
>> `treeItemListener` sees `focusedIndex=0` and incorrectly shifts it to 1 
>> placing the focus on second item of the `TreeTableView`.
>> The fix replaces `isFocused(0)` with `getFocusedIndex() >= 0`, which reads 
>> the raw stored index.
>
> Ziad El Midaoui has updated the pull request with a new target base due to a 
> merge or a rebase. The incremental webrev excludes the unrelated changes 
> brought in by the merge/rebase. The pull request contains four additional 
> commits since the last revision:
> 
>  - Merge branch 'openjdk:master' into 8379662.TreeTableViewFocus
>  - Fix TreeTableView initial focus
>  - Minor changes
>  - Fix TreeTableView focus and added test

Was this test failure ever resolved?
https://github.com/openjdk/jfx/pull/2104#issuecomment-4039627033

(I don't see the failure on my MacBook Pro 2021 M1 macOS 26.3.1)

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

PR Comment: https://git.openjdk.org/jfx/pull/2104#issuecomment-4077319923

Reply via email to