Java Swing JScrollPane 和 JTable 组合边框的问题
import java.awt.Dimension;
import java.awt.FlowLayout;
import javax.swing.*;
public class Scroll extends JFrame {
public static void main(String[] args) {
// TODO Auto-generated method stub
new Scroll();
}
Scroll(){
this.setDefaultCloseOperation(DISPOSE_ON_CLOSE);
this.setLayout(new FlowLayout());
JTable table = new JTable(20,20);
JScrollPane sp =new JScrollPane();
sp.setViewportView(table);
this.add(sp);
this.pack();
this.setVisible(true);
}
}
问题:最下面多出来的那部分边线是什么?怎么去除?