@Override
        public void stateChanged(ChangeEvent e) {
           JSlider source = (JSlider)e.getSource();
            if (!source.getValueIsAdjusting()) {
                jeu.setTimerDifficulte(source.getValue());
                level.setText(String.valueOf(source.getValue()));
                statistique.setNiveau(source.getValue());
            }    
        }