Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8106421 UI become garbage when dragging effects applet out of the browser on the secondary monitor, MultiMon system
  3. JDK-8106609

Nodes with cache: true turn black when dragged across screens in a multi-monitor environment

    XMLWordPrintable

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: fx1.0
    • Fix Version/s: fx1.1
    • Component/s: javafx
    • Environment:

      Vista / ATI Radeon 4870 – This problem has been reproduced on a variety of hardware

      Description

      I added this as a subtask of RT-2299 since it is related to multi-monitor support, which is not supported in the 1.0 release.

      If you create a group with cache: true then any child nodes will not render once dragged across screens in a multi-monitor environment. This is easily reproducible with the following code:
      Stage {
          scene: Scene {
              width: 200
              height: 200
              content: Group {
                  cache: true
                  content: Rectangle {
                      width: 200
                      height: 200
                      fill: Color.BLUE
                  }
              }
          }
      }

      When dragged across screens, the blue rectangle will turn black.

      I have a rather elaborate hack for now that works as a drop-in replacement for Group and flips cache to false, and then back to true when a Node is dragged across screens. See org.jfxtras.scene.CacheSafeGroup in the JFXtras project for more details:
      http://code.google.com/p/jfxtras/

        Attachments

          Activity

            People

            Assignee:
            tdv Dmitri Trembovetski (Inactive)
            Reporter:
            schin Stephen Chin (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported: