private void setWords(){
        words = new ArrayList<Word>();
        Iterator<Word> iterator = Main.getListAllWords().getList().iterator();
        while(iterator.hasNext()){
            words.add(iterator.next());
        }
        progressBar.setMaximum(words.size());
        Collections.shuffle(words);
        numberTotQuestions.setText(new Integer(words.size()).toString());




    }