I set tooltip for buttons,but it looks so small(font size),how can I make it bigger?I have tried myTooltip.setFont(new Font(20))
,but it dosen't work,why?And how can I make the font bigger?
Thank you all guys!
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
Set the style in a stylesheet, or directly, e. g.:
tooltip.setStyle("-fx-font-size: 20");