On Fri, 3 May 2024 21:00:26 GMT, Andy Goryachev <ango...@openjdk.org> wrote:
>> Adds **Labeled.textTruncated** property which indicates when the text is >> visually truncated (and the ellipsis string is inserted) in order to fit the >> available width. >> >> The new property is being set by the code which computes the actual text >> string to be displayed (and which inserts the ellipsis string) in >> `LabeledSkinBase.updateDisplayedText(double,double)`. >> >> >> **Alternative** >> >> None exists as this requires changes to the core (Utils). >> >> >> **See Also** >> >> * [JDK-8327483](https://bugs.openjdk.org/browse/JDK-8327483) TreeView: Allow >> for tooltip when cell text is truncated >> * [JDK-8205211](https://bugs.openjdk.org/browse/JDK-8205211) Ability to show >> Tooltip only when text is shown with ellipsis (...) > > Andy Goryachev has updated the pull request incrementally with one additional > commit since the last revision: > > whitespace modules/javafx.controls/src/main/java/javafx/scene/control/Labeled.java line 837: > 835: * When truncated, the {@link #ellipsisStringProperty() > ellipsisString} > 836: * gets inserted in the place dictated by the > 837: * {@link #textOverrun} property. I just noticed that this link doesn't work. Looks like you'll need to change it to point to the `textOverrunProperty()` method. ------------- PR Review Comment: https://git.openjdk.org/jfx/pull/1389#discussion_r1591041626