@Override
    public void refresh(RefreshEvent event) {
        ScoresModel sm = (ScoresModel) event.getSource();
        scoreDialog.setTitle(sm.getAskedScores()+" best scores");
        scoreDialog.setVisible(true);
        Iterator<Score> itr = sm.getBestScores().iterator();
        int number = 0;
        while (itr.hasNext()) {
            Score score = itr.next();
            Calendar date = score.getDate();
            SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yy");
            String strDate = "";
            if (date != null) {
                strDate = sdf.format(date.getTime());
            }
            int place = number+1;
            labels[number].setText("<html><b>"+place+" : </b> <font color=green>"+score.getTime()+"</font> by <i color=green>"+score.getPseudo()+"</i> le <i>"+strDate+"</i></html>");
            number++;
        }
        for (int i = number; i < ScoresModel.NB_SCORES; i++) {
            labels[i].setText(i+1+" : No Score");
        }
    }