Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4632159

Lightweight repaint problem after dismissing heavyweight PrintDialog

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.1
    • 1.4.0
    • client-libs
    • 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.

            rraysunw Richard Ray (Inactive)
            shickeysunw Shannon Hickey (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: