public boolean isCellEditable(int rowIndex, int columnIndex) {
return true;
}
public void setValueAt(Object value, int row, int col) {
HostAuthentication auth = (HostAuthentication) listAuth.get(row);
switch (col) {
case 0:
auth.setHostName((String) value);
break;
case 1:
auth.setPort(((Integer) value).intValue());
break;
case 2:
auth.setUserName((String) value);
break;
case 3:
auth.setPassword((String) value);
break;
case 4:
auth.setRealm((String) value);
break;
}
checkAndAppendNewRow();
fireTableCellUpdated(row, col);
}