Prior to Java SE 6.0, there were some issues with Swing painting.
I am not very certain what a toolkit thread is. Will find out, but in the meanwhile if anyone knows, please post a comment.
The fine print:
True double buffering is enabled only on the windows platform at the moment. However it is implemented for other platforms as well, and will be enabled soon.
- When a minimized swing window was unobscured, it took a while for it to repaint. Till then the user saw a gray box. I think they also call it the "gray rect" problem :-)
- Assume that the application is blocking the event dispatch thread (maybe because it is performing a large computation or loading a large file...). If we minimize and application, then it will not show a painted window upon unobscuring untill the event dispatch thread is unblocked. (offcourse we should not block the event dispatch thread for such a large task. Ideally a task larger than 250 ms should be started in a seperate thread)
I am not very certain what a toolkit thread is. Will find out, but in the meanwhile if anyone knows, please post a comment.
The fine print:
True double buffering is enabled only on the windows platform at the moment. However it is implemented for other platforms as well, and will be enabled soon.
Comments