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

Win: Clipboard.getImage() can return null even when Clipboard.hasImage() returns true

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 7u6
    • Fix Version/s: 8
    • Component/s: javafx
    • Labels:
    • Environment:

      JavaFX 2.2, Java 7-update 6, Windows 7

      Description

      When I copy a rectangular selection from an image (using Windows 7 "Paint" program), Clipboard.hasImage() returns true but the immediately following call to Clipboard.getImage() returns null.

      On the other hand, if I copy from the Windows 7 "snipping tool", hasImage() returns true and getImage() returns the image as it should.

      I speculate that the Paint program is putting the image into the clipboard in a format that JavaFX doesn't support. However, if that's the case, hasImage() should return false instead of true.

        Attachments

          Activity

            People

            • Assignee:
              uta Alexey Utkin (Inactive)
              Reporter:
              rterrelljfx Roger Terrell (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported: