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

JEditorPane: HR tag ignores SIZE attribute.

XMLWordPrintable

      JEditorPane renders a horizontal rule with the same thickness no matter what you specify the SIZE attribute to be.

      Here is a sample file:

      <html>
        <head>
          <title>Dividers1</title>
        </head>

        <body>
          <h2>Horizontal Rules (Thickness Test)</h2>

          <P>2 pixels
            <HR ALIGN="LEFT"><br>
          </P>

          <P>10 pixels
            <HR ALIGN="LEFT" SIZE="10"><br>
          </P>

          <P>30 pixels
            <HR ALIGN="LEFT" SIZE="30"><br>
          </P>

        </body>
      </html>


      Instructions:

      1) Save the above file.
      2) Load it into JEditorPane.

      edmund.lou@eng 1999-10-19

            svioletsunw Scott Violet (Inactive)
            elousunw Edmund Lou (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: