Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8117188

Labeled component with multi-lines text throws exception when setting setWrapText(true) and OverrunStyle.CENTER_WORD_ELLIPSIS.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: fx2.1
    • Fix Version/s: fx2.1
    • Component/s: javafx
    • Labels:
    • Environment:

      Win7 + FX2.1 b04

      Description

      Create a labeled component and add following settings:

      label.setPrefSize(200, 40);
      label.setWrapText(true);
      label.setTextOverrun(OverrunStyle.CENTER_WORD_ELLIPSIS);

      It's easy to reproduce for Asian languages text when the preferred size is small than the size of the text. And sometimes it also happens for English text.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              leifs Leif Samuelsson (Inactive)
              Reporter:
              jennyh Jenny Huang (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported: