RFR: 8042054: JTree.updateUI uses out-of-date item size information [v2]
Sergey Bylokhov
serb at openjdk.org
Fri Nov 14 21:33:00 UTC 2025
On Fri, 14 Nov 2025 07:31:32 GMT, Prasanta Sadhukhan <psadhukhan at openjdk.org> wrote:
>I couldn't find any issue with it.
You can reproduce this issue with a custom renderer that depends on some data from the tree. If that data in turn depends on the current UI, then the renderer may continue using outdated UI information.
Most components update their UI starting from the current component down the subtree: either by calling updateComponentTreeUI or by using the same pattern deleted in this patch. Examples JComboBox, JInternalFrame, JList, etc.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/28258#discussion_r2528993931
More information about the client-libs-dev
mailing list