Multi-line tooltips in Java?

前端 未结 10 1588
故里飘歌
故里飘歌 2020-12-02 12:31

I\'m trying to display tooltips in Java which may or may not be paragraph-length. How can I word-wrap long tooltips?

10条回答
  •  醉梦人生
    2020-12-02 13:16

    Use HTML tooltips and manually break your lines (a simple word tokenizer with a fixed line length should do it). Just make sure your tooltop text starts with "". Break lines with "
    " or "

    ". I realize it's not the most clean solution and Java's HTML support is horrible, but it should get things done.

提交回复
热议问题