使ControlFx NotificationPane接受节点 [英] Make ControlFx NotificationPane accept Node
本文介绍了使ControlFx NotificationPane接受节点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
ControlsFX有一个很棒的控件叫做 NotificationPane
,可以像这样轻松使用
ControlsFX has an awesome control called NotificationPane
, which can easily be use like so
NotificationPane np = new NotificationPane();
np.setText("What to be displayed here");
我想知道的是,是否有可能以这样的方式扩展它,而不是显示它文本显示节点
。
What I am wondering, is it possible to extends it in such a way that, instead of it displaying text to display a Node
.
推荐答案
您不需要扩展它。只需使用接受节点的构造函数。
You don't need to extends it. Just use the constructor that accepts a node.
这篇关于使ControlFx NotificationPane接受节点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文