Custom Java tool tip with Swing components as content does not show up

后端 未结 6 791
忘掉有多难
忘掉有多难 2020-12-09 10:42

I\'m trying to show multiple images in a component\'s tooltip, found createToolTip() and implemented a custom that adds the needed components like this:

6条回答
  •  旧时难觅i
    2020-12-09 11:20

    Instead of reinventing the wheel try this: https://github.com/timmolderez/balloontip. You can put any content as JComponent.

提交回复
热议问题