Dragged Text Object not shown.

Wagner, Mitchell [US-US] Mitchell.Z.Wagner at leidos.com
Tue Jul 22 20:06:15 UTC 2025


Hi all,

We have an urgent JavaFX issue.  Please see the following.  If anyone can help or give any help.  Please let me know.



Summary:
OpenJFX: Dragged Text Object not shown.
Description:
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 reproduce:
Drag text repeatedly until text does not show up.
Only reproducible on physical equipment.  Not currently reproducible on Virtual Machines.
Current environment is: RHEL 8.10, X11, openJDK: 17.0.12, openJFX: 17
Expected Results:
Text should always be rendered.
Actual Results:
Text is not always rendered when dragged.


Thanks,

Mitchell Wagner | Leidos
Lead Software Engineer | Civil
phone: 609.272.2051
mitchell.z.wagner at leidos.com<mailto:mitchell.z.wagner at leidos.com>  |  leidos.com/civil<http://www.leidos.com/civil>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/openjfx-dev/attachments/20250722/1c4f78a6/attachment-0001.htm>


More information about the openjfx-dev mailing list