My requirement:
I have a JList with the list of some store names.
There is a function that checks the online connectivity of the store or the current state of the store.
Based on the return value of the function, I need to highlight those store names correspondingly.
I understand that the JList has a one-dimensional array model. Hence, I cannot save an extra column of data ie. store name, status in the model.
Is there a way I can use that external parameter 'status' in my ListCellRenderer to change the colors of items in my list?
Please give me some pointers.