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

Display HTML document with a fixed width

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • 6
    • client-libs

      There is a bug with HTMLDocument used from JEditorPane and JTextPane. If in
      the HTML a pre formatted line then this line has a fixed width. It look like
      that this fixed line width is used as minimum width for all paragraphs. This
      seems incorrect because all browsers (Firefox 2.0, IE 6.0 and Opera 8.0) has
      different behavior. I have attached a java test program and screenshots from
      browser and Java to make the problem visible. In the browser a large object
      or a not breakable line does not change the behavior of another paragraphs.

            peterz Peter Zhelezniakov
            tyao Ting-Yun Ingrid Yao (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Imported:
              Indexed: