设置 jtable中列的宽度,可以参见如下代码 int columncount = this.jTable.getColumnCount(); for (int i = 1; i < columncount; i++) { this.jTable.getColumnModel().getColumn(i).setPreferredWidth(200); } 设置 jtable中列的高度,可以参见如下代码 jTable.setRowHeight(30);
转载于:https://my.oschina.net/zchuanzhao/blog/512633