Q: Labeled.textTruncated Property (RFE)

Andy Goryachev andy.goryachev at oracle.com
Tue Mar 5 21:15:48 UTC 2024


Dear colleagues:

Do you think a new property, ReadOnlyBooleanProperty textTruncated, should be added to the Labeled control?


On one hand, we do have a couple of tickets in JBS requesting that:


  *   JDK-8091891<https://bugs.openjdk.org/browse/JDK-8091891> TreeView: There is no tooltip available on truncated node
  *   JDK-8205211<https://bugs.openjdk.org/browse/JDK-8205211> Ability to show Tooltip only when text is shown with ellipsis (...)

On the other hand, this functionality can in theory be implemented at the application level, although the number of changes required might be uncomfortably large in the case of Tree/TreeTable/TableView.

JBS:

  *   JDK-8092102<https://bugs.openjdk.org/browse/JDK-8092102> Labeled: truncated property



Pull Request: https://github.com/openjdk/jfx/pull/1389

What do you think?

-andy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/openjfx-dev/attachments/20240305/2477dfc1/attachment.htm>


More information about the openjfx-dev mailing list