Hi
I am working on an incredible project, it is an GUI. I hav used a JLabel to show 10 words but it actually always shows the last one only. I think that i need a timer to make it change but i have already a timer and i cannot put another one.
my code is this:
int i = 0;
while (i < 10) {
word = game.randomize(game.getBigDic());
arrayOfTen.add(word);
System.out.println(arrayOfTen.get(i));
label3.setText(arrayOfTen.get(i));
i++;
}
The arraylist has the 10 words but the label can't seem to show the 10 words. How can i make each word show each after 1 second?