On Fri, 14 Nov 2025 06:24:21 GMT, Sergey Bylokhov <[email protected]> wrote:
>> Prasanta Sadhukhan has updated the pull request incrementally with one
>> additional commit since the last revision:
>>
>> Test formatting
>
> src/java.desktop/share/classes/javax/swing/JTree.java line 784:
>
>> 782:
>> 783: setUI((TreeUI)UIManager.getUI(this));
>> 784: } finally {
>
> Is it possible that the cell renderer and cell editor depend on the current
> UI set on the component, which is the opposite situation of the current bug,
> how it will work before after the patch?
I couldn't find any issue with it.
I modified existing JTree/4330357/bug4330357.java to switch to Nimbus from
Metal and I see no difference with Cell renderer and editor
WIthout patch
<img width="220" height="154" alt="Image"
src="https://github.com/user-attachments/assets/e093e17a-2b5e-4e68-a530-cd7d5c040794"
/>
With patch
<img width="223" height="233" alt="Image"
src="https://github.com/user-attachments/assets/2651a6c0-60c7-40b6-b537-6464e7cbbaaa"
/>
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/28258#discussion_r2526151605