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,658
  • 4
  • 35
  • 44
Brlja
  • 364
  • 3
  • 14

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
  • 1
    Yes that did it, just found answer on related post. http://stackoverflow.com/questions/8996200/how-to-hide-grid-lines-in-jtable?rq=1 – Brlja Jan 20 '15 at 12:40
  • 1
    I will but need to wait for 6 more minutes – Brlja Jan 20 '15 at 12:41