JavaFX multi-line label right justification line break alignment

401 views Asked by At

I have a JavaFX interface with some multi-line text labels which are right justified using the usual settings.

What's bothering me is that the right justification is line breaking after a space instead of what I thought would be the normal of breaking at the end of the final character of the first line, which gives it a ragged right edge.

Just checked and I'm not mad, in Excel for example it breaks where I would expect and gives a clean right edge.

So... assuming this is a bug or lack of attention to detail by the JavaFX team, is there anything I can override in Label to fix this problem ??

The first image is the JavaFX version, second Excel.

JavaFX Label right alignment

Excel right alignment

1

There are 1 answers

1
ItachiUchiha On BEST ANSWER

This bug is already reported as JDK-8145496 and right now is not targeted for any specific release.

It is reported as a P4 priority. Feel free to vote for the issue, if you want to get it fixed with a higher priority.