java鼠标事件实现提示功能
当鼠标移动到新建文件图标上时,就会提示“新建文件”。请问使用Java怎样实现,请给出实例,谢谢!...
当鼠标移动到新建文件图标上时,就会提示“新建文件”。请问使用Java怎样实现,请给出实例,谢谢!
展开
2个回答
2014-06-14
展开全部
public void setToolTipText(String text)
Registers the text to display in a tool tip.
The text displays when the cursor lingers over the component.
See How to Use Tool Tips
in The Java Tutorial
for further documentation.
Parameters:
text - the string to display; if the text is null,
the tool tip is turned off for this component
See Also:
TOOL_TIP_TEXT_KEY
Registers the text to display in a tool tip.
The text displays when the cursor lingers over the component.
See How to Use Tool Tips
in The Java Tutorial
for further documentation.
Parameters:
text - the string to display; if the text is null,
the tool tip is turned off for this component
See Also:
TOOL_TIP_TEXT_KEY
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询