public void init(String n,int id){
        if(n.equals("Promotion"))
            etat = Etat.Promotion;
        else if (n.equals("Promotion2")){
            etat = Etat.Promotion2;            
        }
        else if (n.equals("Promotion1")){
            etat = Etat.Promotion1;
            try {
                this.promo = new Promotion(id);
            } catch (SQLException ex) {
                Logger.getLogger(New_Etudiant.class.getName()).log(Level.SEVERE, null, ex);
            }
            this.nom.setText(this.promo.getNom());
            this.annee.setText(String.valueOf(this.promo.getAnnee()));
            this.d_debut.setText(afficherDate(this.promo.getTsDebut()));
            this.d_fin.setText(afficherDate(this.promo.getTsFin()));
        }
    }