Forcing a JList to refresh one cell



I have a JList where each item in the list is rendered by a
ListCellRenderer. Among other things, the ListCellRenderer shows a
JProgressBar that is updated by an outside event. The item itself has an
observer to notice that it has been updated, but other than calling
repaint on the whole JList, I can't seem to make it repaint the cell that
changed.

--
Paul Tomblin <ptomblin@xxxxxxxxx> http://xcski.com/blogs/pt/
I think I'd like to see a Simpsons episode starting up with Bart Simpson
writing 'I will not attempt to undermine the Usenet Cabal'.
-- J. D. Falk
.



Relevant Pages

  • Re: Forcing a JList to refresh one cell
    ... > ListCellRenderer. ... > JProgressBar that is updated by an outside event. ... > repaint on the whole JList, I can't seem to make it repaint the cell that ... You should send your ListDataListeners a "contentsChanged" notification ...
    (comp.lang.java.gui)
  • Re: Forcing a JList to refresh one cell
    ... >> ListCellRenderer. ... >> repaint on the whole JList, I can't seem to make it repaint the cell that ... >protected void fireContentsChanged(Object, int, int) ... changed up to the ListModel, and then the ListModel would have to ...
    (comp.lang.java.gui)