colour a cell based on value input using the CellRenderer?
posted 2 years ago
Hi, basically I am using JTables and I have a row of data. I have a user ID column, and a status column (along with a bunch of other), what I want is when the 'status' column is edited and "Accepted" is typed, the user ID should turn green. If "Rejected" is typed the user ID should turn red. This has to I guess happen dynamically, as once its opened and either accepted/rejected are typed then enter is pressed it should change.
I have tried a few methods and code from online but I just cannot do it. Can someone please guide me through the process!