Vote count:
0
I programmed a little game in Java for school. We have library with given functions. I write a code that repeats a command (while), i checked with the println that the command is running correctly, but in the GUI you can't see the result, only the last result.
Code:
public void spielen () {
if (guthaben > 0) {
if (endlosspielAktiv) {
while (guthaben > 0) {
kasten.Ringe.faerbeUm(); //Here the GUI doesn't show the results
ZEICHENFENSTER.gibFenster().warte(500);
guthabenRunter();
}
setEndlosspielAktiv(false);
} else {
kasten.Ringe.faerbeUm();
}
} else if (guthaben == 0) {
setEndlosspielAktiv(false);
}
guthabenRunter();
}
asked 56 secs ago
GUI don't show the command at the frame
Aucun commentaire:
Enregistrer un commentaire