public Parametres() {
        initComponents();
        
        
        // on creer le noeud racine
        Element racine = null;
        //un objec jdom document
        Document document = null;
        // on creer une instance de saxbuilder
        SAXBuilder sxb = new SAXBuilder();

        //Recupération des valeurs de parametre et modification de celle-ci
        try {
            String path = System.getProperty("user.dir" );
            document = sxb.build(new File(path + "/src/files/param.xml"));
            racine = document.getRootElement();
            List lstParam = racine.getChildren("param");

            //Iterator pour parcourir la list
            Iterator ite = lstParam.iterator();

            String paramName;
            String paramPath;

            while(ite.hasNext()){
                Element curent = (Element) ite.next();
                //recupere values
                paramName = curent.getAttributeValue("name").toString();
                paramPath = curent.getAttributeValue("pathName").toString();
                //modifier values
                if(paramName.contains("bddPath"))
                    txtBddPath.setText(paramPath);
                if(paramName.contains("bddUser"))
                    txtIdBdd.setText(paramPath);
                if(paramName.contains("bddPass"))
                    txtMdpBdd.setText(paramPath);
                if(paramName.contains("factureModel"))
                    txtFacturePath.setText(paramPath);
                if(paramName.contains("devisModel"))
                    txtDevisPath.setText(paramPath);
                if(paramName.contains("mesureModel"))
                    txtMesurePath.setText(paramPath);
                if(paramName.contains("decoteModel"))
                    txtDecotePath.setText(paramPath);
                if(paramName.contains("folderCommandePath"))
                    txtFolderPath.setText(paramPath);

            }

        } catch (JDOMException ex) {
            Logger.getLogger(Parametres.class.getName()).log(Level.SEVERE, null, ex);
        } catch (IOException ex) {
            Logger.getLogger(Parametres.class.getName()).log(Level.SEVERE, null, ex);
        }

        //Bouton Parcourir facture
        jButtonParcourFolder4.addActionListener(new ActionListener() {

            @Override
            public void actionPerformed(ActionEvent e) {
                //throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
                JFileChooser chooser = new JFileChooser();
                chooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
                int returnVal = chooser.showOpenDialog(null);
                if (returnVal == JFileChooser.APPROVE_OPTION){
                    System.out.println("Chemin choisi : " + chooser.getSelectedFile().getAbsolutePath());
                    txtFacturePath.setText(chooser.getSelectedFile().getAbsolutePath());
                }
            }
        });
        
        //Bouton Parcourir devis
        jButtonParcourFolder3.addActionListener(new ActionListener() {

            @Override
            public void actionPerformed(ActionEvent e) {
                //throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
                JFileChooser chooser = new JFileChooser();
                chooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
                int returnVal = chooser.showOpenDialog(null);
                if (returnVal == JFileChooser.APPROVE_OPTION){
                    System.out.println("Chemin choisi : " + chooser.getSelectedFile().getAbsolutePath());
                    txtDevisPath.setText(chooser.getSelectedFile().getAbsolutePath());
                }
            }
        });
        
        //Bouton Parcourir mesure
        jButtonParcourFolder2.addActionListener(new ActionListener() {

            @Override
            public void actionPerformed(ActionEvent e) {
                //throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
                JFileChooser chooser = new JFileChooser();
                chooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
                int returnVal = chooser.showOpenDialog(null);
                if (returnVal == JFileChooser.APPROVE_OPTION){
                    System.out.println("Chemin choisi : " + chooser.getSelectedFile().getAbsolutePath());
                    txtMesurePath.setText(chooser.getSelectedFile().getAbsolutePath());
                }
            }
        });
        
        //Bouton Parcourir decote
        jButtonParcourFolder1.addActionListener(new ActionListener() {

            @Override
            public void actionPerformed(ActionEvent e) {
                //throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
                JFileChooser chooser = new JFileChooser();
                chooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
                int returnVal = chooser.showOpenDialog(null);
                if (returnVal == JFileChooser.APPROVE_OPTION){
                    System.out.println("Chemin choisi : " + chooser.getSelectedFile().getAbsolutePath());
                    txtDecotePath.setText(chooser.getSelectedFile().getAbsolutePath());
                }
            }
        });
        
        //Bouton Parcourir chemin dossier de commandes
        jButtonParcourFolder.addActionListener(new ActionListener() {

            @Override
            public void actionPerformed(ActionEvent e) {
                //throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
                JFileChooser chooser = new JFileChooser();
                chooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
                int returnVal = chooser.showOpenDialog(null);
                if (returnVal == JFileChooser.APPROVE_OPTION){
                    System.out.println("Chemin choisi : " + chooser.getSelectedFile().getAbsolutePath());
                    txtFolderPath.setText(chooser.getSelectedFile().getAbsolutePath());
                }
            }
        });
        
        
//      Param p = new Param();
//      String test = p.getParam("nameDuNoeudXML");
    }