On Tue, 5 May 2026 11:33:26 GMT, Kevin Walls <[email protected]> wrote:

>> JConsole needs to disable HTML rendering in components populated by MBeans, 
>> as is standard practice.
>> 
>> 
>> ---------
>> - [x] I confirm that I make this contribution in accordance with the 
>> [OpenJDK Interim AI Policy](https://openjdk.org/legal/ai).
>
> Kevin Walls has updated the pull request incrementally with one additional 
> commit since the last revision:
> 
>   remove one unnecessary html.disable, add one more

src/jdk.jconsole/share/classes/sun/tools/jconsole/inspector/XMBeanAttributes.java
 line 877:

> 875:                 comp.setPreferredSize(new Dimension((int) d.getWidth(), 
> 220));
> 876:             }
> 877:             putClientProperty("html.disable", Boolean.TRUE);

It seems that you should set the property to `comp` rather than on the cell 
renderer object.

You return `comp` in `getTableCellRendererComponent`—this is the component used 
for rendering, and I can't see whether `html.disable` is set on it.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/30998#discussion_r3188117433

Reply via email to