try {
System.out.println("1");
int row = jTable4.getSelectedRow();
System.out.println("row");
String str = (jTable4.getModel().getValueAt(row, 0).toString());
System.out.println("model");
String query = "select idclient from client where idclient = '"+str+"' ";
System.out.println("str");
System.out.println("2");
rs =(ResultSet) pst.executeQuery();
System.out.println("3");
if(rs.next()){
String str4 = rs.getString("idclient");
System.out.println("4");
jTextField1.setText(str4);
System.out.println("5");
}
} catch (SQLException e) {
Logger.getLogger(Display.class.getName()).log(Leve l.SEVERE, null, e);
}
I select the first row the value is 0
I select the second the value is still 0