class TestTableCellRenderer
      extends DefaultTableCellRenderer {
    public Component getTableCellRendererComponent(JTable table,
        Object value,
        boolean isSelected,
        boolean hasFocus,
        int row,
        int column) {
if(column == 2){//也就是你想变颜色的列
this.setBackground(Color.red);
}
return super.getTableCellRendererComponent(table, value, isSelected,
                                                 hasFocus, row, column);}然后你用yourtable.getColumn(2).setCellRenderer(new TestTableCellRenderer());我没有做过测试,你试试吧!