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

Add word wrap to JLabel

XMLWordPrintable

    • Cause Known
    • x86
    • windows_xp

      A DESCRIPTION OF THE REQUEST :
      I think JLabel needs to have an option to automatically word-wrap like a JTextPane. JLabel should have a property, maybe called wordWrap, and corresponding methods void setWordWrap(boolean) and boolean getWordWrap(). Then, whenever the label would normally be cut off or require a certain amount of size, it would instead wrap the words onto the next line like any other text component would do.

      JUSTIFICATION :
      Text components are too heavy and have their own Look & Feel. It is currently difficult to make something that behaves and looks like a label to the user, but can handle wide text which needs to be wrapped to multiple lines.
      ###@###.### 10/19/04 19:58 GMT

            Unassigned Unassigned
            gmanwanisunw Girish Manwani (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Imported:
              Indexed: