• Post Reply Bookmark Topic Watch Topic
  • New Topic

word wrapping tooltips  RSS feed

 
Fabio Piergentili
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does anyone know a way to control word wrapping in Tooltips. In particular, how many words before it wraps to the next line so that it does not go off of screen if too long.

Thank You
 
Darryl Burke
Bartender
Posts: 5167
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use HTML with the BR tag. Example:
 
Fabio Piergentili
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I already did that and it works but it seems a bit of a hack as I am getting the text from a table entry. I do not know the size of the string ahead of time. I could write a method that does some kind of word wrapping that imbeds the html <br> for a given size but again it seems like their should be an easier way of doing it. I was looking for a method in the ToolTipManager but there was nothing that stood out.

Thanks
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!