[英]How to refresh the items in the comboBox List in JAVA FX
In my project I am using a comboBox but i need to refresh that comboBox after sometime ...but Unabble to do this...I am doing something like that 在我的项目中,我使用的是comboBox,但是我需要在一段时间后刷新该comboBox ...但是Unabble可以做到这一点...我正在做类似的事情
comboBox.getItems().clear();
for(int i=0; i<Users.length; i++)
{
comboBox.getItems().add(Users[i]);
}
the above code is working properly there was Error somewhere else 上面的代码正常工作,其他地方出现错误
comboBox.getItems().clear();
for(int i=0; i<Users.length; i++)
{
comboBox.getItems().add(Users[i]);
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.