-
Bug
-
Resolution: Fixed
-
P4
-
1.4.0
-
None
-
hopper
-
x86
-
windows_nt
This bug is very similar to 4508670 but this time the issue is with the heavyweight PrintDialog. When the PrintDialog is shown it saves a picture of whatever was behind it. When it is then dismissed, it restores whatever was behind it to what was saved. The problem is that sometimes the look of the component behind it might have changed and thus the restoration is incorrect.
To see this, compile and run the attached program.
You will see a frame with a red background.
Click the button and a PrintDialog will appear.
Wait five seconds and the background will change color.
Disimiss the PrintDialog with "Cancel".
Notice that the area behind the PrintDialog is painted the wrong color.
I can imagine cases more important than this, such as with a dynamically changin gui.
To see this, compile and run the attached program.
You will see a frame with a red background.
Click the button and a PrintDialog will appear.
Wait five seconds and the background will change color.
Disimiss the PrintDialog with "Cancel".
Notice that the area behind the PrintDialog is painted the wrong color.
I can imagine cases more important than this, such as with a dynamically changin gui.
- relates to
-
JDK-4508670 Lightweight repaint problem after dismissing heavyweight FileDialog
-
- Resolved
-