如是设置表格头的标题 你用的是 DefaultTableModel吧? ((DefaultTableModel)model).addColumn(new String("列"+colNum));就可以了. 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 TableColumn 为什么不行呢? 那就把这行去掉吧:model.setColumnCount(colNum); 因为在model里记录到你的列数没有增加,根据文档:If the new size is greater than the current size, new columns are added to the end of the model with <code>null</code> cell values.所以加了一列name是null的. 有关PriorityQueue(很奇怪) Image 和 BufferedImage 是不是与String / StringBuffer 的区别一致? 编程实现对一个按钮的点击 遇到一个问题想不明白,希望能说明过程 各位大哥 我以前是做SAP维护的 现在做程序员 该怎么办? 假如要你输入一个数,如何编写 java连接sql时出现错 帮我看看用JCreator 3.5编译出现错误! 关于java图形处理的问题 请教关于设置JTable 列宽的问题 【求助】poolman 问题 jdk1.4在WIN XP环境下则么配置 好象和WIN2000下不一样阿
model.setColumnCount(colNum);
根据文档:
If the new size is greater
than the current size, new columns are added to the end of the model
with <code>null</code> cell values.
所以加了一列name是null的.