My application does not draw itself at startup. When resizing or minimizing / maximizing the application window is painted.
This problem only appears on Windows machines (I tested XP, Vista and Windows 7). On Mac OS X and Linux, the application works fine.
The machines installed java 6. My application uses AWT, not Swing. I tried using Swing (so JFrame instead of Frame), but this does not solve the problem.
I checked the calls to repaint (), update () and paint () of the frame. They all appear, and a drawing image is available. I also checked if these calls were made in the EDT thread. In this case. When the window (or min / max-ed) is resized, the paint () call is made by the system and the image is drawn.
My fear is that I'm missing something really obvious. I make the frame visible, check it (also checked with a sign of invalidity) and redraw it. This is enough for Mac OS X and Linux.
Does anyone have any suggestions as to what I should do, or what else to try?
Thanx in advance
Maurice
source share