RFR: 8042054: JTree.updateUI uses out-of-date item size information [v2]

Prasanta Sadhukhan psadhukhan at openjdk.org
Mon Nov 17 04:58:10 UTC 2025


On Mon, 17 Nov 2025 03:34:23 GMT, Sergey Bylokhov <serb at openjdk.org> wrote:

>>> You can reproduce this issue with a custom renderer
>> Did you manage to reproduce? If yes, could you give me the reproducer then?
>> 
>> Regarding other components, the submitter did talk about other JBS submitted by him like JList for example being ignored so maybe same thing needs to be done there too..
>
> I do not think we should change the parent->child order. We need to figure out some other possibilities. Possibly some components that use the same logic are not affected because they perform additional recalculations at the end of their UI updates.

> either by calling updateComponentTreeUI or by using the same pattern deleted in this patch

If calling updateComponentTreeUI is logical updation to be done after L&F change, then maybe we can consider it as a pertinent solution too and close this as not an issue..

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

PR Review Comment: https://git.openjdk.org/jdk/pull/28258#discussion_r2532699537


More information about the client-libs-dev mailing list