private void jButtonCompresserActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonCompresserActionPerformed
        if (!this.jTextFieldNameFile.getText().isEmpty() && !this.jTextAreaChaineACompresser.getText().isEmpty())
        {
            JOptionPane d = new JOptionPane();
            d.showMessageDialog( this.jPanel1,
                "Seul un des deux champs doit être remplit !",
                "Attention",
                WARNING_MESSAGE);
        }
        else if (this.jTextFieldNameFile.getText().isEmpty() && this.jTextAreaChaineACompresser.getText().isEmpty())
        {
            JOptionPane d = new JOptionPane();
            d.showMessageDialog( this.jPanel1,
                "Aucun champ est remplit",
                "Attention",
                WARNING_MESSAGE);
        }
        else
        {
            as.initAscii();
            this.b = new BurrowsWheelerTransform(as);

            if (!this.jTextAreaChaineACompresser.getText().isEmpty())
            {
                this.codeBWT = this.b.encodage(this.jTextAreaChaineACompresser.getText());
                this.tailleChaineDepart = this.jTextAreaChaineACompresser.getText().length();
            }
            else 
            {
                ReadFile rd = new ReadFile();
                String chaine = rd.readFile(this.jTextFieldNameFile.getText());
                this.codeBWT = this.b.encodage(chaine);
                this.tailleChaineDepart = chaine.length();
            }

            this.mvt = new MoveToFront(b.getPosition(),as);
            this.codeMTF = this.mvt.compressionMTF(codeBWT);

            this.hf = new Huffman(this.codeMTF);
            this.codeHuffman = hf.coder();

            this.tailleChaineFin = ceil((double)this.codeHuffman.length()/8);

            this.affichageCompression();
        }
    }//GEN-LAST:event_jButtonCompresserActionPerformed