Component (JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) { final Component component = super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column); setBackground(UIUtil.getTableBackground(isSelected, myTable.hasFocus())); return component; }