2

Vertical lines when row is selected

How to hide this lines when row is selected in JTable?

I set to false: showVerticalLines, showGrid.
Also setBorder to zero does not help.

Any ideas??

aterai
  • 9,438
  • 4
  • 33
  • 43
Brlja
  • 345
  • 3
  • 13

1 Answers1

4

Try to add this:

.setIntercellSpacing(new Dimension(0, 0));

Maybe this is the problem. It's hard to be sure, because I don't know your code.

ProgrammingIsAwsome
  • 1,109
  • 7
  • 15