I am trying to add a tool tip to my swing components, but the \n for a newline displays a square icon instead of breaking to a new line. Is there a way to display tool tip text on multiple lines?
Actually forget it, I didn't realise the html tags were case sensitive in Java. I cahnged the html tags to lower case and it now works. So for that Haslo gets another star....kerching!:
In general, tooltips should be VERY SHORT; a couple of words, let alone a whole sentence. If you are finding yourself using multi-line tooltips, you are probably using them for the wrong purpose.
Basically using a multi-line tooltip to avoid having to create an entire user manual for a simple application... So each field has a one to two line description of what to type / or select in the field, and when to apply certain criteria.... It is not really a "tool-tip" in the Microsoft sense, but it satisfies the purpose
The reason why my html formatting wouldn't work originally on my home pc is because I was running 1.2.1. It did work on my office PC however (it has 1.2.2) so it appears that html formatting has only been included since 1.2.2.
I do not know how widely known this is - maybe I should have read the release notes. But anyway, worth pointing out as it has caused me a bit of hassle
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.