Component (JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) { Component component = super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column); component.setForeground(RenderingUtil.getForeground(table, isSelected)); component.setBackground(RenderingUtil.getBackground(table, isSelected)); component.setEnabled(((ScopesAndSeveritiesTable)table).isRowEnabled(row)); return component; }