I showed JTable in my JPanel. JTable is inside scrollpane. The only problem is that the grids are not displayed. I tried using this line of code, but it did not work.
table.setShowGrid(true);
Below is the image: note that there are no grid lines
Thanks in advance.
Does the etched border matter?
table.setBorder(new EtchedBorder(EtchedBorder.RAISED));
EDIT:
The color of the grid lines looks white by default:
table.setGridColor(Color.BLUE)
table.setShowHorizontalLines(true); table.setShowVerticalLines(true);