Hi!
Does anyone know how to fix this?
I'm using an awt Frame for a simple key-driven animation. Load some images and paint them over one another in the process. But when the frame loads for the first time there is nothing on it - just a plain white rectangle... sometimes one of the actor appears... sometimes none (usually none)... as soon as I start pressing keys or minimize/maximize the frame, everything paints correctly. Calling repaint() before or after the setVisible() doesn't seem to help. What's going on?
Does anyone know how to fix this?
I'm using an awt Frame for a simple key-driven animation. Load some images and paint them over one another in the process. But when the frame loads for the first time there is nothing on it - just a plain white rectangle... sometimes one of the actor appears... sometimes none (usually none)... as soon as I start pressing keys or minimize/maximize the frame, everything paints correctly. Calling repaint() before or after the setVisible() doesn't seem to help. What's going on?