I am trying to set the border of each cell in a JTable in its TableCellRenderer.
However, the border appears outside the grid line. When I turn off the grid lines, I see white spaces in the place of the gridlines.
I don not want to set the color of the gridline to the background color since I am using multi-colored borders for my cells.
Please let me know how I can fix it. Thanks!