1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
| public void sauvegarder_notes() {
int i;
Double vaa = -1.12;
int v = 0;
String nom,prenom;
table.editCellAt(nbr_eleve,0);
// table.getEditorComponent().requestFocusInWindow();
for(int j = 1; j <= table.getColumnCount() - 1; j++) {
//System.out.println("colonne "+j);
System.out.println((String)colnames.elementAt(j));
for(i = 0; i <= nbr_eleve; i ++)
{
Object ob = table.getValueAt(i,j);
Object ob1 = table.getValueAt(i,0);
String va = ob.toString();
String name = ob1.toString();
//System.out.println(name);
if(va!=" ")
;
String vall = (String) table.getModel().getValueAt(i,j);
if(val!="")
vaa = Double.parseDouble(vall);
System.out.println(vaa);
//coo.sauvegarder_notes((String)colnames.elementAt(j),vaa);
}
// table.getEditorComponent().requestFocusInWindow();
}
} |
Partager