non so se ho capito bene ma questa potrebbe essere una soluzione
Codice PHP:
JTable t = new JTable();
int righe = t.getRowCount();
int colonne = t.getColumnCount();
int somma = 0;
for (int i =1 ; i<colonne ;i++){
for (int j=1; j<righe-1; j++){
somma += (Integer)t.getValueAt(j, i);
}
t.setValueAt(somma, righe, i);
}