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

Mac: Drag and Drop Errors

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P4
    • 8
    • 7u25
    • javafx
    • None
    • last JDK 7
      Mac Mountain Lion
      IntelliJ IDEA

    Description

      I'm trying to do a simple drag and drop example:

      so I have some sources (ImageViews)
      and an AnchorPane as a target

      then

      @FXML
          void DragDetected(MouseEvent event) {


              ImageView n = (ImageView) event.getSource();
              Dragboard storeImage =n.startDragAndDrop(TransferMode.MOVE);
              ClipboardContent content = new ClipboardContent();
              content.putImage(n.getImage());
              storeImage.setContent(content);
              event.consume();

          }

      this is the error I have:

      'application/x-java-rawimage' is not a valid UTI string. Cannot set data for an invalid UTI.

      Attachments

        Issue Links

          Activity

            People

              pchelko Petr Pchelko (Inactive)
              sgutierrejfx Sebastian Gutierrez (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported: