The DefaultTableCellRenderer
examines the isSelected
parameter passed to the getTableCellRendererComponent()
method and sets the selection color accordingly. To affect all conforming renderers, You can make the selection color equal to the background color using the relevant UIManager
keys, Table.background
and Table.selectionBackground
.
UIManager.put("Table.selectionBackground", UIManager.get("Table.background"));
In a acustom renderer, you can specify the same color irrespective of isSelected
.