Forums Register Login

word wrapping tooltips

+Pie Number of slices to send: Send
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
+Pie Number of slices to send: Send
Use HTML with the BR tag. Example:
+Pie Number of slices to send: Send
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
Die Fledermaus does not fear such a tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 2505 times.
Similar Threads
Printing problem
Line count including word wrapping?
text editor, JTextArea or JTextPane?
Wrapper vs Adapter
jtextpane help
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 20:30:33.