private void ConnectActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_ConnectActionPerformed
        UserDAO cdao = new UserDAO();
       clients=cdao.findUserByLogin(login.getText());
        
        boolean there = cdao.Authentification(login.getText(), pwd.getText());
        if(there)
            { 
                if(login.getText().equals("admin") && pwd.getText().equals("admin"))
                {
                    AffichageUserGui a= new AffichageUserGui();
                    a.setVisible(true);
                    this.dispose();
                }
                else {
                   ProfilClient b=new ProfilClient();
                   b.setVisible(true);
                   this.dispose();
                }
        }else
        {
            JOptionPane.showMessageDialog(this,"Login OR Password unvalid");
        }

    }//GEN-LAST:event_ConnectActionPerformed