This is my code, there is no error but deleting does not delete me in the phpmyadmin database.
int fila = tabladatos.getSelectedRow();
String sql = "DELETE FROM clientes WHERE Id_cliente = ?";
if (fila >= 0) {
try {
PreparedStatement ps = cn.prepareStatement(sql);
ps.setString(1, Id_cliente.getText());
ps.executeUpdate();
mostrartabla();
limpiar();
JOptionPane.showMessageDialog(null, "Datos eliminados");
} catch (SQLException e) {
System.out.println(e);
}
}