给你段代码。可以改抬头名,在初次载入时用
此函数用于购建表格台头部分
public String[] jtableTitle() {
int i;
String[] jtableTitle = new String[i];
/** 'i' means you will create table's column amount */
stringUser[0] = "TableColumn1";
stringUser[1] = "TableColumn2";
.......
stringUser[i-1] = "TableColumni-1";
return jtableTitle;
}
仍是继承 AbstractTableModel 呗
只不过 要自己维护 第一列的值而已啊