JavaFx的:空的ListView默认消息 [英] JavaFx :Default Message for Empty ListView
本文介绍了JavaFx的:空的ListView默认消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当在它显示了一个消息表格中的内容没有,这是在JavaFX TableView中的默认功能的任何表中没有记录。
When there is no record in any table it shows a message 'No content in table', which is by default functionality of TableView in JavaFx.
所以在这里我的问题是,是否同样能有可能与在JavaFX中的ListView?就像,如果有任何的ListView没有项目,然后它会显示相同的TableView一个消息,而不是空/空字段。
So here my question is, does the same can be possible with ListView in JavaFx ? Like, if there is no item in any ListView then it will show a message same as TableView, instead of a blank/empty fields.
推荐答案
您必须试试这个: -
You have to try this:-
listView.setPlaceholder(新标签(没有内容列表));
100%的工作....
its 100% working....
这篇关于JavaFx的:空的ListView默认消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文