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

Mac: Drag and Drop Errors

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Duplicate
    • Affects Version/s: 7u25
    • Fix Version/s: 8
    • Component/s: javafx
    • Labels:
      None
    • Environment:

      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

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

                Dates

                Created:
                Updated:
                Resolved:
                Imported: