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

Frame.printAll() invoked on a non-opaque window prints black background

    Details

    • Subcomponent:
    • Resolved In Build:
      b12
    • CPU:
      generic
    • OS:
      generic

      Description

      When using the API introduced with the feature described at the CR 6633275, and making a frame non-opaque (AWTUtilities.setWindowOpaque(frame, false)), the frame is displayed as a translucent top-level window on the screen. The background of the frame becomes invisible, and only the explitcitly painted pixels are visibles (like those belonging to the Swing components put onto the frame).

      However, when the Frame.printAll() method is used to print the frame contents on the paper, the area occupied by the invisible background gets printed with black color on the paper which is not correct.

      Expected behavior: nothing should be printed at the areas occupied by the background of the frame if these areas are invisible on the screen because the frame is non-opaque.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                anthony Anthony Petrov (Inactive)
                Reporter:
                anthony Anthony Petrov (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: