Dragged Text Object not shown.

Christopher Schnick crschnick at xpipe.io
Wed Jul 23 05:55:05 UTC 2025


Is that specific to a Text node? Or what happens if you use a Label or 
similar. And also, is the whole node gone or only the text itself, e.g., 
what happens if you set a background color for the node you drag.

On 22/07/2025 22:06, Wagner, Mitchell [US-US] wrote:
>
> 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/20250723/76aa88ad/attachment.htm>


More information about the openjfx-dev mailing list