On Tue, 25 Nov 2025 12:25:08 GMT, Prasanta Sadhukhan <[email protected]> 
wrote:

>>>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..
>> 
>> We should check the other components. Are any of them affected? If not we 
>> can check why, and apply the same logic to jtree.
>
> Since this is similar to JTable where issue is not seen and the cellrenderer 
> and editors are used, I guess we should follow the same approach as it is 
> being done in JTable as below and set the renderers and editors before the 
> UI..
> 
> https://github.com/openjdk/jdk/blob/49176e322bbb9ed1ef2f534b949b937770b54162/src/java.desktop/share/classes/javax/swing/JTable.java#L3697-L3727
> 
> Other which does not use this renderers and editors we can skip setting UI 
> after for the timebeing..

I see, please double check how the setUI() of "jtree vs jtable" are 
implemented, are they the same? also do we need to call something similar to 
configureEnclosingScrollPaneUI() in jtree? is the order is the only difference 
between the two?

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

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

Reply via email to