A discussion forum for JFreeChart (a 2D chart library for the Java platform).
-
Krac
- Posts: 17
- Joined: Thu Dec 07, 2006 2:26 pm
- Location: Baia Mare, Romania
Post
by Krac » Tue Jan 22, 2008 4:07 pm
Hello, everyone
Is there any easy way to display the text in a tooltip HTML formatted?
Or at least bolding some parts of the text and eventually using <br/> s in order to display the text on several rows?
TIA, all the best
-
mhilpert
- Posts: 497
- Joined: Wed Apr 02, 2003 1:57 pm
- Location: Germany
Post
by mhilpert » Tue Jan 22, 2008 4:10 pm
How about standard Java HTML support:
Code: Select all
final String categoryTooltip = "<html>I can display <b>bold</b> - and you?</html>";
Java 11, JFreeChart 1.0.15, JFreeSVG 4.0
-
Krac
- Posts: 17
- Joined: Thu Dec 07, 2006 2:26 pm
- Location: Baia Mare, Romania
Post
by Krac » Tue Jan 22, 2008 4:16 pm
Excellent, thanks!
I used the text formatted but WITHOUT the <HTML> tag... so it lead me nowhere
