panel_6.add(panel_8, BorderLayout.CENTER);
panel_8.setLayout(new MigLayout("", "[480.00,grow]", "[][][]"));
Font texte22 = FontesLoader.getFonteTexte((float)22, this);
Exercice lastExercice = controller.getLastExercice();
if( lastExercice != null ){
SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy");
JLabel lblLeVous = new JLabel("Le " + sdf.format(lastExercice.getDate()) + ", vous avez effectué :");
lblLeVous.setFont(texte22);
panel_8.add(lblLeVous, "cell 0 0,alignx center");
JLabel lblNewLabel_2 = new JLabel(lastExercice.getRepetitions() +" "+ lastExercice.getType() + " en " +
(int) ((lastExercice.getDuree())/60)+ " minutes et " + (int) ((lastExercice.getDuree())%60)+ " secondes");
lblNewLabel_2.setFont(texte22);
panel_8.add(lblNewLabel_2, "cell 0 1,alignx center");
JLabel lblBravoVous = new JLabel("Bravo ! Vous avez gagné "+ lastExercice.getCoins() +" SportCoins");
lblBravoVous.setFont(texte22);
panel_8.add(lblBravoVous, "cell 0 2,alignx center");
}
else{
JLabel lblPasEncore = new JLabel("Vous n'avez encore fait aucun exercice");