Controling width of tool tip
-
- Posts: 11
- Joined: Thu Jul 13, 2006 11:38 am
Controling width of tool tip
hi,
How can i control the width of a tooltip. If the string
i display on the tooltip is very large the tooltip occupies
the whole screen and even goes beyond that. Ay idea
thanks in advance
How can i control the width of a tooltip. If the string
i display on the tooltip is very large the tooltip occupies
the whole screen and even goes beyond that. Ay idea
thanks in advance
-
- Posts: 11
- Joined: Thu Jul 13, 2006 11:38 am
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
More recent versions of Swing support HTML in tooltips I think, so you could try adding <br> tags.
David Gilbert
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader


-
- Posts: 11
- Joined: Thu Jul 13, 2006 11:38 am
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
OK, sorry for the misinformation. I'm sure I saw this working somewhere...when I get a chance, I'll try it out. I guess there is a possibility that this is LookAndFeel specific - which one are you using?
David Gilbert
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader


All swing text components support the display of HTML. For example
will be displayed as 2 lines
Code: Select all
"<html><body>line1<br>line2</body></html>"
Tool tip width
Tool tip width can be controlled by setting the property for the overlib... Nothing special needs to be done other than setting this attribute in your javascript 

However difficult the task, if One Man can do it, then everyone can.
Sunil Z
Sunil Z