图书馆为eclipse风格的工具提示? [英] Library for eclipse style tooltips?

查看:112
本文介绍了图书馆为eclipse风格的工具提示?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有人知道一个像Eclipse的工具提示一样的开源swing工具提示库?具体来说,我正在寻找的功能是一个像常规工具提示一样的工具提示,但是当您按 F2 (或某些键)时仍然存在,以便将内容复制到剪贴板。 p>

谢谢。

解决方案

没有测试自己,但也可能是 JCustomTooltip (基于 javax.swing.JToolTip 类)

prefuse.org

  setPersistent(boolean inter)




设置工具提示是否在屏幕上保持持续,以支持工具提示组件中的交互。


由于源码可用,可能是为您自己的版本编写代码的起点。


Does anyone know of an open source swing tooltip library that works like eclipse's tooltips? Specifically, the functionality I'm looking for is a tooltip that acts like a regular tooltip, but persists when you press F2 (or some key) so that you can copy the contents to the clipboard.

Thanks.

解决方案

Not tested myself, but maybe the JCustomTooltip (based on the javax.swing.JToolTip class)
of prefuse.org:

setPersistent(boolean inter) 

Sets if the tooltip will stay persistent on the screen to support interaction within the tooltip component.

Since the sources are available, that could be a starting point to code your own version.

这篇关于图书馆为eclipse风格的工具提示?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆