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

java.awt.Robot.createScreenCapture() doesn't work for translucent windows

    Details

    • Subcomponent:
    • Resolved In Build:
      b138
    • CPU:
      generic, x86
    • OS:
      generic, linux
    • Verification:
      Verified

      Description

      During investigation of the CR #6848852 it was discovered that method
      java.awt.Robot.createScreenCapture() doesn't work if a translucent java window
      is shown. It happens only on Linux.

      Please use the following regression test to reproduce:
      test/javax/swing/JComponent/6683775/bug6683775.java

      Note that this test works only if there is no toolbar on the top of the workspace,
      to make the test work in this case this line:
      BufferedImage capture = robot.createScreenCapture(new Rectangle(100, 100));

      should be fixed to capture the rectangle with the backgroundFrame's bounds
      TCK team has requested the release team to look at this bug again as it affects TCK tests. Andrey, please look at this bug and give an estimate on what it takes to fix this?

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                anthony Anthony Petrov (Inactive)
                Reporter:
                alexp Alexander Potochkin (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: