I want to be able to do two things:
- set colors of rows based on index, so first row is red, second blue, third green
- be able to set color of columns also based on something, be it index or their names etc, whatever is possible.
I do not need to detect selection change or anything. Could someone tell me how to do that? What methods would help etc? In case the title wasn't read, this is regarding DefaultTableModel
in JTables
.