Integrated: 8341286: TreeView: visual artifacts when setting new root with null value

Ziad El Midaoui zelmidaoui at openjdk.org
Fri Aug 1 11:39:05 UTC 2025


On Mon, 30 Jun 2025 21:49:22 GMT, Ziad El Midaoui <zelmidaoui at openjdk.org> wrote:

> The issue is that when we use null value for root item in a TreeView and then expand the root or change it dynamically there are phantom disclosure nodes that appear incorrectly. 
> The issue was caused by this line `if (getSkinnable().isEmpty()) return;` in `TreeCellSkin#updateDisclosureNode()` as it prevents the method from running unless the cell's value is not empty and it caused the creation of disclosure nodes visually without any logic behind.

This pull request has now been integrated.

Changeset: eca3e38b
Author:    Ziad El Midaoui <zelmidaoui at openjdk.org>
Committer: Kevin Rushforth <kcr at openjdk.org>
URL:       https://git.openjdk.org/jfx/commit/eca3e38b894e8d07fcabf02e3dd381354c589a90
Stats:     2 lines in 1 file changed: 0 ins; 2 del; 0 mod

8341286: TreeView: visual artifacts when setting new root with null value

Reviewed-by: angorya

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

PR: https://git.openjdk.org/jfx/pull/1838


More information about the openjfx-dev mailing list