Hi,
I want to remove the horizontal gridlines in a single column of my JTable. That column has a custom renderer that extends DefaultTableCellRenderer, and I've overridden the getTableCellRendererComponent method as follows:
public Component getTableCellRendererComponent(JTable table, Object value,
boolean isSelected, boolean hasFocus, int row, int column) {
comp = super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column);
comp.setBackground(Color.BLACK);
comp.setForeground(Color.WHITE);
return comp;
}
However, I also want no gridlines to be displayed in this column (i.e. I want none of the lines between the cells in this column to appear). Is there any way to do this?
Thanks,
hhung