解决办法:修改JTable的setAutoResizeMode属性,设置为JTable.AUTO_RESIZE_OFF,如:mytable.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);