请各位帮我看一下,为什么这里有错~~谢谢,关于JTable的
public class AAc extends JPanel{
public AAc() {
try {
jbInit();
} catch (Exception ex) {
ex.printStackTrace();
}
}
private void jbInit() throws Exception {
this.setLayout(null);
setSize(new Dimension(800, 350));
bntOk.setBounds(new Rectangle(15, 44, 64, 30));
bntOk.setText( "查询 ");
bntOk.addActionListener(new AAc_bntOk_actionAdapter(this));
jScrollPane1.setBounds(new Rectangle(86, 34, 694, 241));
this.add(bntOk);
vcHead = new Vector();
vcHead.add( "游戏 ");
vcHead.add( "服务器 ");
vcHead.add( "物品 ");
vcHead.add( "一口价 ");
vcHead.add( "当前出价 ");
vcHead.add( "竞标者 ");
vcHead.add( "到期时间 ");
jTable1 = new JTable(vcBody, vcHead);
jScrollPane1.add(jTable1);
this.add(jScrollPane1);
jScrollPane1.getViewport().add(jTable1);
}
JButton bntOk = new JButton();
JScrollPane jScrollPane1 = new JScrollPane();
JTable jTable1 = new JTable();
Vector vcBody = null;
Vector vcHead = null;
JTableHeader jTableHeader1 = jTable1.getTableHeader();
public void bntOk_actionPerformed(ActionEvent e) {
try
{
Vector body = new Vector();
Vector temp = new Vector();