private void configModifPan() {
		modifPan.setHeight("585px");
		modifPan.setWidth("805px");
		modifPan.setStyleName("modifPan");
		// Wrap the contents in a DecoratorPanel
		DecoratorPanel dec2Panel = new DecoratorPanel();
		dec2Panel.setWidget(modifPan);
		add(dec2Panel, 480, 10);

		modifPan.add(new HeaderPanels("Modifier le profil / mot de passe"));

		// mod generales
		// mod age
		HTML textAge = new HTML();
		textAge.setHTML("Age : ");
		final ListBox boxAge = new ListBox(false);
		for (int i = 10; i <= 99; i++) {
			boxAge.addItem(""+i+" ans");
		}
		boxAge.setSelectedIndex(Core.userEnCours.getAge()-10);
		//final TextBox boxAge = new TextBox();
		//boxAge.setWidth("20px");

		modifPan.add(textAge);
		modifPan.add(boxAge);
		modifPan.setWidgetPosition(textAge, 30, 90);
		modifPan.setWidgetPosition(boxAge, 120, 90);


		// mod activite
		HTML textActivite = new HTML();
		textActivite.setHTML("Activite : ");
		final TextBox boxActivite = new TextBox();
		boxActivite.setWidth("90px");
		boxActivite.setValue(Core.userEnCours.getActivite());
		boxActivite.setMaxLength(20);

		modifPan.add(textActivite);
		modifPan.add(boxActivite);
		modifPan.setWidgetPosition(textActivite, 420, 90);
		modifPan.setWidgetPosition(boxActivite, 530, 90);

		//mod aime
		HTML textAime = new HTML();
		textAime.setHTML("Aime : ");
		final TextBox boxAime = new TextBox();
		boxAime.setSize("500px", "60px");
		boxAime.setValue(Core.userEnCours.getAime());
		boxAime.setMaxLength(90);

		modifPan.add(textAime);
		modifPan.add(boxAime);
		modifPan.setWidgetPosition(textAime, 30, 130);
		modifPan.setWidgetPosition(boxAime, 120, 130);

		//mod aime pas
		HTML textAimePas = new HTML();
		textAimePas.setHTML("N'aime pas : ");
		final TextBox boxAimePas = new TextBox();
		boxAimePas.setSize("500px", "60px");
		boxAimePas.setValue(Core.userEnCours.getAimePas());
		boxAimePas.setMaxLength(90);

		modifPan.add(textAimePas);
		modifPan.add(boxAimePas);
		modifPan.setWidgetPosition(textAimePas, 30, 210);
		modifPan.setWidgetPosition(boxAimePas, 120, 210);


		Button modifButton = new Button(
				"Modifier", new ClickHandler(){
					public void onClick(ClickEvent event) {
						int age = 0;
						//actions click mod
						age = boxAge.getSelectedIndex()+10;
						Core.userEnCours.setAge(age);

						if(boxActivite.getValue()!=""){
							Core.userEnCours.setActivite(boxActivite.getValue());
						}
						if(boxAime.getValue()!=""){
							Core.userEnCours.setAime(boxAime.getValue());
						}
						if(boxAimePas.getValue()!=""){
							Core.userEnCours.setAimePas(boxAimePas.getValue());
						}
						fichePan.clear();
						configFichePan();
						ProfilService.Util.getInstance().modifInfos(Core.userEnCours.getIdInt(), 
								boxAime.getValue(), boxAimePas.getValue(), age, boxActivite.getValue(), new AsyncCallback<Boolean>(){
							@Override
							public void onFailure(Throwable caught) {
								Window.alert("Erreur : "+ caught.getMessage());
							}
							@Override
							public void onSuccess(Boolean result) {
							}
						});				
					}

				});
		modifButton.setStyleName("boutonRech");
		//modifButton.setWidth("200px");
		modifPan.add(modifButton);
		modifPan.setWidgetPosition(modifButton, 250, 300);
		// fin mod generales

		// debut mod pass
		HTML textModifPass = new HTML();
		textModifPass.setHTML("<br><h3>Modifier mon mot de passe</h3><br>");
		modifPan.add(textModifPass);
		modifPan.setWidgetPosition(textModifPass, 60, 320);

		// ancien pass
		HTML textMdp = new HTML();
		textMdp.setHTML("Ancien mot de passe : ");
		final PasswordTextBox boxMdp = new PasswordTextBox();
		boxMdp.setWidth("140px");

		modifPan.add(textMdp);
		modifPan.add(boxMdp);
		modifPan.setWidgetPosition(textMdp, 30, 410);
		modifPan.setWidgetPosition(boxMdp, 210, 410);

		// nouveau pass
		HTML textNewMdp = new HTML();
		textNewMdp.setHTML("Nouveau mot de passe : ");
		final PasswordTextBox boxNewMdp = new PasswordTextBox();
		boxNewMdp.setWidth("140px");

		modifPan.add(textNewMdp);
		modifPan.add(boxNewMdp);
		modifPan.setWidgetPosition(textNewMdp, 30, 450);
		modifPan.setWidgetPosition(boxNewMdp, 210,450);

		// confirmer pass
		HTML textConfMdp = new HTML();
		textConfMdp.setHTML("Confirmer : ");
		final PasswordTextBox boxConfMdp = new PasswordTextBox();
		boxConfMdp.setWidth("140px");

		modifPan.add(textConfMdp);
		modifPan.add(boxConfMdp);
		modifPan.setWidgetPosition(textConfMdp, 30, 490);
		modifPan.setWidgetPosition(boxConfMdp, 210,490);

		Button modifPassButton = new Button(
				"Modifier", new ClickHandler(){
					public void onClick(ClickEvent event) {
						// actions click mod pass
						// si mdp entré != vide et de ancien mdp annuler mod
						if(boxMdp.getValue().equals(Core.userEnCours.getMdp())){
							if(boxNewMdp.getValue().equals(boxConfMdp.getValue())){
								if(boxNewMdp.getValue()!=""){
									ProfilService.Util.getInstance().modifMdp(Core.userEnCours.getIdInt(), 
											boxNewMdp.getValue(), new AsyncCallback<Boolean>() {
										@Override
										public void onFailure(Throwable caught) {
											Window.alert("Erreur mdp : "+ caught.getMessage());
										}
										@Override
										public void onSuccess(Boolean result) {
											Window.alert("Votre mot de passe à été modifié");
										}
									});
									Core.userEnCours.setMdp(boxMdp.getValue());
									boxNewMdp.setValue("");
									boxMdp.setValue("");
									boxConfMdp.setValue("");
								}else{
									//popup nouveau mot de passe incorrect
									Window.alert("Nouveau mot de passe incorrect");
								}
							}else{
								//popup les mdp ne correspondent pas
								Window.alert("Les mots de passe ne correspondent pas");
							}
						}else{
							//le mdp n'est pas le bon
							Window.alert("Mot de passe incorrect");
						}

					}				
				});
		// fin mod pass

		modifPassButton.setStyleName("boutonRech");
		modifPan.add(modifPassButton);
		modifPan.setWidgetPosition(modifPassButton, 250,530);
	}