1 2 3 4 5 6 7 8 9 10 11
|
private void Update_tabel(){
try{
String sql="select Matricule,nom_client,prenom_client,adresse,num_tel,e_mail from Client";
if(conn!=null){pst=conn.prepareStatement(sql);}else{JOptionPane.showMessageDialog(null,"erreurx");}
if(pst!=null){ rs=pst.executeQuery();}else{JOptionPane.showMessageDialog(null,"erreurx");}
if(rs!=null){ tab_client.setModel(DbUtils.resultSetToTableModel(rs));}else{JOptionPane.showMessageDialog(null,"erreurx");}
}catch(SQLException e){
JOptionPane.showMessageDialog(null,e);
}
} |
Partager