public class SystemManage extends JFrame{
JTable table;
Object a[][];
Container con;
SystemManage(String s) throws SQLException{
super(s);

con = getContentPane();
this.setSize(500,500);
Dimension dim=Toolkit.getDefaultToolkit().getScreenSize();  //获取分辨率
this.setLocation((dim.width - 500) / 2,(dim.height - 500) / 2);  //使窗体居中
this.setResizable(true); //设置窗体不可以更改大小
this.setVisible(true);  //设置窗体可见
this.validate();         //设置组件可见

a=new Object[8][2];
Object name[]={"sdf","sdf"};
for(int t=0;t<8;t++){
for(int h=0;h<2;h++){
a[t][h]="fsd";
}
}
table=new JTable(a,name);
con.add(table,BorderLayout.CENTER);
}}为什么不显示表头啊???郁闷死了!不知道哪里错了啊~~~~大家帮忙看下 谢谢拉