I already messed with the code. What I found out is that the code actually works as if the first repaint removes the red box: if you remove that line, the red box remains displayed also at its old...
Type: Posts; User: evert67
I already messed with the code. What I found out is that the code actually works as if the first repaint removes the red box: if you remove that line, the red box remains displayed also at its old...
Thanks, this clarifies it a bit. But what I still don't understand is how the first invocation of repaint causes the red box to be wiped out.
Yup. Are these forums somehow connected and, if so, is there a preferred place?
I’m teaching myself AWT/Swing using an Oracle tutorial. There’s a section a don’t fully understand.
It concerns an application that creates dynamic graphics using the Graphics class. I understand...