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

    • Bug
    • Resolution: Fixed
    • P4
    • fx2.1
    • fx2.1
    • javafx
    • 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

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

              Dates

                Created:
                Updated:
                Resolved:
                Imported: