On Tue, 18 Nov 2025 00:55:34 GMT, Sergey Bylokhov <[email protected]> wrote:
>>> 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.. > >>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.. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/28258#discussion_r2559808008
