remove cells border in a jtable
I have my on custom cell renderer and want to remove the border of the cell. How can i do it? I tried setBorder but it doesn't work. Here is my renderer code: public class MyTableCellRenderer extends DefaultTableCellRenderer { private static final long serialVersionUID = -1195682136616306875L; public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) { Component c = super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column); if (!isSelected) { if (row % 2 == 0 && row != 1) { c.setBackground