Tooltip的问题

MyXin 2004-07-08 09:48:19
我们知道,在Java中用setToolTipText()可以设置提示信息。但我需要实现特殊的ToolTip功能,就像 Jbuilder中String.弹出来的那个黄色窗体一样。
有那位兄弟做过?给个方案。。。。
...全文
134 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
MyXin 2004-07-11
  • 打赏
  • 举报
回复
up
MyXin 2004-07-08
  • 打赏
  • 举报
回复
up
MyXin 2004-07-08
  • 打赏
  • 举报
回复
kofwr(搭补流二) :

A component that wants to create a custom ToolTip display can override JComponent's createToolTip method and use a subclass of this class


I see. How to do? Can you give me some code?......
kofwr 2004-07-08
  • 打赏
  • 举报
回复
Used to display a "Tip" for a Component. Typically components provide api to automate the process of using ToolTips. For example, any Swing component can use the JComponent setToolTipText method to specify the text for a standard tooltip. A component that wants to create a custom ToolTip display can override JComponent's createToolTip method and use a subclass of this class.

For the keyboard keys used by this component in the standard Look and Feel (L&F) renditions, see the JToolTip key assignments.

See How to Use Tool Tips in The Java Tutorial for further documentation.

panzhiwei 2004-07-08
  • 打赏
  • 举报
回复
可以弹出一个对话框呀~

62,622

社区成员

发帖
与我相关
我的任务
社区描述
Java 2 Standard Edition
社区管理员
  • Java SE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧