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

Dragged Text Object not shown

XMLWordPrintable

    • x86_64
    • linux_redhat_6.0

      ADDITIONAL SYSTEM INFORMATION :
      RHEL 8.10, X11, openJDK: 17.0.12, openJFX: 17

      A DESCRIPTION OF THE PROBLEM :
      We have a use case involving the dragging of text across a Stage. To support this, we have created a Text object, which is registered to the root AnchorPane. The Text Object can be dragged freely around the Stage. However, we've encountered an issue where the text sometimes fails to render, even though the Text Object contains the expected data.

      When the mouse click happens, the current action is:
      root.getChildren().remove(dragText);
      root.getChildren().add(dragText);
                                                                                 
      This happens directly before we start the drag action:
      dragText.startFullDrag();
      (dragText is a Text Object)

      The dragText contains the expected value when the Text object is rendered or not. The issue seems to be with rendering of the object. When the issue occurs, the JavaFX application must be restarted to recover. Have verified:
      • anchor root is valid with correct x/y locations
      • the text node that is being dragged is visible/has focus/correct x/y values in relation to parent stage
      • toBack/toFront does not change the results
      • increasing the font to a much larger size changed nothing
      • occurs randomly (with multiple application restarts between instances) on both single and multiple monitor workstations



      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Drag text repeatedly until text does not show up.
      Only reproducible on physical equipment. Not currently reproducible on Virtual Machines.


      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Text should always be rendered.
      ACTUAL -
      Text is not always rendered when dragged.

            adev Anupam Dev
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: