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

Drag and Drop of HTML text results in plain text when used in JFXPanel

    Details

    • Type: Bug
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 7u25, 8
    • Fix Version/s: tbd
    • Component/s: javafx
    • Environment:

      Windows 7, 32-bit JVM

      Description

      I was personally testing this against a WebView component. I don't know if it affects other components as well.

      When retrieving text that has been dragged and dropped from another application from the dragboard object:

      e.g.
      if (dragboard.hasHtml())
      String content = dragboard.getHtml();

      If the component is not within a JFXPanel, it will retrieve actual HTML text.
      If it is in a JFXPanel, then hasHtml returns true but getHtml() gets a *plain text* version of the contents. (And getString() returns the same.)

      Strangely enough, when testing this on a Java 8 prerelease, there is no content at all.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              duke J. Duke (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Imported: