I\'m trying to hide the grid lines of a JTable but with no results. Even trying to change the color of the grid lines does not work. Here is my code:
//
you have to set two thingies
In code:
table.setShowGrid(false);
table.setIntercellSpacing(new Dimension(0, 0));
Or use JXTable (from the SwingX project) which does it for you:
xTable.setShowGrid(false, false);
just jTable1.setShowHorizontalLines(false); or jTable1.setShowVerticalLines(false); or you can use the 2 option
jTable1.setShowHorizontalLines(false);
jTable1.setShowVerticalLines(false);