Component (JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) { Component component = super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column); component.setEnabled(table.isEnabled() && (hasFocus || isSelected)); return component; }