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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 8
    • 7u6
    • javafx
    • JavaFX 2.2, Java 7-update 6, Windows 7

      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.

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

              Created:
              Updated:
              Resolved:
              Imported: