On Thu, 30 Apr 2026 10:29:18 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).

src/jdk.jconsole/share/classes/sun/tools/jconsole/inspector/OperationEntry.java 
line 60:

> 58:                         public JToolTip createToolTip() {
> 59:                             JToolTip t = super.createToolTip();
> 60:                             t.putClientProperty("html.disable", 
> Boolean.TRUE);

you can also do it for l52 where JLabel is created..

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

> 821:                                                      int column) {
> 822: 
> 823:             table.putClientProperty("html.disable", Boolean.TRUE);

we do not put html.disable property on JTable object directly as JTable object 
doesn't use label directly, where html tags would be used, but via cell 
renderer...We put it on DefaultTableCellRenderer which extends JLabel so I 
guess better would be to put it on l833 for MaximizedCellRenderer object 
provided it extends DTCR

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

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

Reply via email to