diff --git a/shukan/ShukanView.java b/shukan/ShukanView.java index 85cf5401ccdb7083d5234c956674354b6b97701e..d2c3e3b9647179786157d93dd19026b8c8f92d94 100644 --- a/shukan/ShukanView.java +++ b/shukan/ShukanView.java @@ -398,7 +398,11 @@ public class ShukanView extends JPanel String nom_profs = teachers[0]; for (int j = 1; j<teachers.length; j++) { - nom_profs+=" / "+teachers[j]; + rajout_prof = true; + for (int k = 0; k<j; k++){ + if (teachers[j]==teachers[k]) rajout_prof = false; + } + if (rajout_prof) nom_profs+=" / "+teachers[j]; } System.out.println(); noms_cours[i] = new JLabel("Cours : "+data.activityName(activities[week_activities[i]]));