标签JavaFX上的SceneBuilder工具提示 [英] SceneBuilder Tooltip over Label JavaFX

查看:236
本文介绍了标签JavaFX上的SceneBuilder工具提示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我的标签文字太长,我想要一个工具提示,当我用鼠标悬停在标签上时显示整个标签文字。这可以在SceneBuilder中完成,还是我必须以编程方式为我的所有标签做?

If I have a label with a text that's too long and I want a tooltip that shows the entire label text when I hover over the label with my mouse. Is that possible to do in SceneBuilder or do I have to do it programically for all my labels?

推荐答案

在其他中在库窗格(左侧)中,您将找到工具提示。只需将其拖放到下面的层次结构窗格中的标签上即可。然后你可以选择工具提示并配置文本等。

Under "Miscellaneous" in the Library pane (left side), you will find a "Tooltip". Just drag it and drop it onto the label in the Hierarchy pane below. Then you can select the tooltip and configure the text, etc.

这篇关于标签JavaFX上的SceneBuilder工具提示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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