I have a list of IPs and each of those IPs have to be compared with the ones I have in the database, if the IPs match a new row will be added BUT the IP cell will be highlighted in green. Does anyone have any ideas? I have tried to do it with Triggers and they only work with preset values, but since each IP is different and I don't know which one will come, I can't do it that way.
I already found the way, what I did was create another constructor for my class so that when there is a match its value is true.
After that I made a trigger evaluate if it is true or false.
As you will see, if it
ips
is false the text will be coloredCrimson
and if it is true its color will beDodgerBlue