As you can see from the image I have my jtable in the frame with two column name and icon. The icon column doesn't highlight. Why? This is my renderer. My icon is a JComponent Object with a green rectangle
public class myRenderer extends JPanel implements TableCellRenderer {
public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int col)
{
if (hasFocus)
setBorder(UIManager.getBorder("Table.focusCellHighlightBorder"));
else
setBorder(null);
return (Component) value;
}
};