JList custom Cell Renderer refresh
Posted on 2016-11-17
I have a JList with a custom cell renderer (the background color changes). How do you refresh a JList, applying this renderer automatically? I have the JList on a tab in a JFrame. If I select another tab, and come back to the tab the JList is on, it refreshes. But I need to have the JList's background color refresh without having me change tabs. (Or, at least have it refresh every 5 seconds or so). I need this to happen without strange GUI glitches (which would probably happen if I have to clear/repopulate the JList) Thanks.