Component (JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) { final Component component = delegate.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column); // to display the table header in disabled state when the table is disabled. component.setEnabled(table.isEnabled()); return component; }