Tooltip text changing depending on which words are moused over in text box?

Is it possible to make it so that the tooltip displayed will change when over certain keywords inside of some swing object? The content will be completely defined by the code so I could use text positioning if that would help. Thanks Edit: Okay, specifically what I would be doing is creating a custom display box for text to use as a combat log. This will be overtop my animations, a hud if you will. What I am thinking, is that I can use a tooltip to display the attributes behind combat calculations, while de-cluttering the log for people who know how things work already.
Can you give some example? Are you in someway talking about setting a tooltip to a Label containing text?

以上就是Tooltip text changing depending on which words are moused over in text box?的详细内容,更多请关注web前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » JavaScript 答疑

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

前端开发相关广告投放 更专业 更精准

联系我们

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏