private void formWindowOpened(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_formWindowOpened
        try {
            Client unClient;
            ResultSet rs = DialogueBdd.select(GETCLIENT);
            while (rs.next()) {
                unClient = new Client();
                unClient.setPrenom(rs.getString("prenom"));
                unClient.setNom(rs.getString("nom"));
                unClient.setEmail(rs.getString("email"));
                unClient.setTitre(rs.getString("titre"));
                unClient.setVille(rs.getString("ville"));
                unClient.setCode_postal(rs.getString("code_postal"));
                unClient.setDivers(rs.getString("divers"));
                unClient.setSite_web(rs.getString("site_web"));
                unClient.setTel_fix(rs.getString("tel_fix"));
                unClient.setFax(rs.getString("fax"));
                unClient.setType(rs.getString("type"));
                unClient.setNum_siret(rs.getString("num_siret"));
                unClient.setRemise(rs.getString("remise"));
                unClient.setVendeur(rs.getString("vendeur"));
                unClient.setTel_port(rs.getString("tel_port"));
                unClient.setRue(rs.getString("rue"));
                unClient.setNb_commande(rs.getString("nb_commande"));
                unClient.setId_client(Integer.parseInt(rs.getString("id_client")));
                lesClient.add(unClient);
            }
        } catch (Exception ex) {
            JOptionPane.showMessageDialog(this, ex);
        }
        txtNom.setDocument(new LimiteCaract(100));
        TxtPrenom.setDocument(new LimiteCaract(100));
        txtFax.setDocument(new LimiteCaract(20));
        txtTel.setDocument(new LimiteCaract(20));
        txtMobil.setDocument(new LimiteCaract(20));
        txtPostal.setDocument(new LimiteCaract(5));
        txtRue.setDocument(new LimiteCaract(254));
        txtMail.setDocument(new LimiteCaract(100));
        txtDiver.setDocument(new LimiteCaract(254));
        txtRemise.setDocument(new LimiteCaract(2));
        txtSiret.setDocument(new LimiteCaract(20));
        txtWeb.setDocument(new LimiteCaract(254));
        txtVendeur.setDocument(new LimiteCaract(100));
        txtVille.setDocument(new LimiteCaract(100));
        lst = new DefaultListModel();
        lstClient.setModel(lst);
        Collections.sort(lesClient, tri);
        for (Client c : lesClient) {
            lst.addElement(c.getNom());
        }
    }//GEN-LAST:event_formWindowOpened