I have a jTable I can delete the row without problem with the following function:
int fila = tabla.getSelectedRow();
if (fila >= 0) {
m.removeRow(fila);
}
With that I delete the selected row there is no problem, the problem is that I do not know how to identify the row in which the record "Daniel" is located, that is I have a table with the following:
ID|Nombre|Direccion
1|Carlos|Av.las manzanas
2|Maria|Av.las100
3|Daniel|Av.Loque sea
that is I want to delete the row in which Id3 is located, but that id is the id that has the name "Daniel" in the database, that is, in the table the row number would be number 2 ,
It is possible to delete the row indicating the value, something like in sql, but I do not know how it could be done in java
Delete fila where idPersona=1;