liondes
Messages postés70Date d'inscriptionsamedi 21 juillet 2012StatutMembreDernière intervention 3 mars 2015
-
30 août 2012 à 18:23
Utilisateur anonyme -
2 sept. 2012 à 17:21
Salut tout le monde
svp j'attends votre aide mon probleme pour le moment c'est la jtable non editable
j'ai trouvé plusieurs méthode que je vien pas de les comprendre ni les utiliser dans mon code
comme celle de sous classe AbstractTableModel()
new AbstractTableModel() {
public String getColumnName(int col) {
return columnNames[col].toString();
}
public int getRowCount() { return rowData.length; }
public int getColumnCount() { return columnNames.length; }
public Object getValueAt(int row, int col) {
return rowData[row][col];
}
public boolean isCellEditable(int row, int col)
{ return true; }
public void setValueAt(Object value, int row, int col) {
rowData[row][col] = value;
fireTableCellUpdated(row, col);
}
}