If you run the small sample below you\'ll see a border around the center region. I\'m not sure why this border is showing.
It happens when a JTable is in a JScrollPane.
I was looking for the answer for the same question but above answers could not do... so I found a better answer:
JScrollPane jsp = new JScrollPane(); //ur other codes jsp.setViewportBorder(null);