JavaFX 2.2: How to force a redraw/update of a ListView

后端 未结 5 1165
悲&欢浪女
悲&欢浪女 2021-02-08 19:16

I have a ListView control in a JavaFX 2 modal dialog window.

This ListView displays DXAlias instances, the ListCells for which are manufactured by a cell factory. The m

5条回答
  •  無奈伤痛
    2021-02-08 19:37

    I am not sure if I am missing something, but at first I tried scottb's solution, but then I found out that there is an already implemented refresh() method, which did the trick for me.

    ListView list;
    list.refresh();
    

提交回复
热议问题