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

ParagraphView doesn't consider forced breaks when computing preferred size

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P5 P5
    • 1.3.0
    • 1.1.7, 1.2.0
    • client-libs
    • None
    • beta
    • generic, unknown
    • generic, solaris_2.5.1

      Here's some code that initializes a JLabel with HTML that
      contains a <br> tag.
          String initialText = "<html>Type HTML into the text area<br> " +
                               "at the left. Then click the button.";
          theLabel = new JLabel(initialText);

      The label reports its preferred size as though the <br> wasn't there.


            tprinzing Tim Prinzing (Inactive)
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: