Tooltip multiline

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
MichelV
Posts: 1
Joined: Fri Jun 25, 2021 12:16 pm
antibot: No, of course not.

Tooltip multiline

Post by MichelV » Fri Jun 25, 2021 12:33 pm

Hello,
I have tried quite a lot of time to get multiline Tooltip (adding Html code, adding CR, adding CRLF, etc) and I have always fails to get a newline.
Jfreechart documentation do not speak about a new line.
Then I read in this forums that JfreeChart is using Swing tooltip. Then I found in Swing tooltip documentation that new line can be added by encapsulating our text with <html></html> and then add <br/> tags where new line is needed.
But this does not work for me. I tried with JfreeChart 1.5.3
Is newline possible in Jfreechart tooltip box ?

Thanks to who can help me :-)

Michel V.

Locked