So I have custom CellEditors and CellRenderers and although I am doing
component.setForeground(isSelected ? table.getSelectionForeground() : table.getForeground());
component.setBackground(isSelected ? table.getSelectionBackground() : table.getBackground());
component.setOpaque(true);
in my getTableCellRendererCompoent, the colors only match on every OTHER row, since most of hte look and feels I've tried seem to alternate them. How can I pull the color values in a way that they'll match whatever the rest of the table looks like? I'd also really like to be able to make nice borders to match the renderers descended from DefaultTableCellRenderer.
I've tried to dissect the DefaultTableCellRenderer, and I got lost trying to track down this UI object. Do I just need the right properties to pull from the UIManager? A lead in the right direction will be much appreciated.
Thanks all, this site rocks. Joshua