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

JEditorPane CSS not supporting borders properly

XMLWordPrintable

    • b20
    • x86
    • windows_nt
    • Not verified

        Name: boT120536 Date: 02/27/2001


        java version "1.3.0"
        Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0-C)
        Java HotSpot(TM) Client VM (build 1.3.0-C, mixed mode)


        The JEditorPane does not properly format borders, as this sample HTML with
        inline CSS would demonstrate in a browser window.

        <html>
        <head>
        <style>
        body
        {
            color: black;
            background: white;
            font-family: Arial, sans-serif;
            font-size: small
        }
        TH
        {
            color: black;
            background: white;
            font-family: Arial, sans-serif;
            font-size: small;
            border-bottom: thin solid black
        }
        TR
        {
            color: black;
            background: white;
            font-family: Arial, sans-serif;
            font-size: small
        }
        .summaryCell
        {
            color: black;
            background: white;
            font-family: Arial, sans-serif;
            font-size: small;
            border-bottom: thin solid black
        }
        </style>
        </head>
        <body bgcolor="white">

        <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
        <tr bgcolor="white">
           <th>&nbsp;</th>
           <th align = "right">Heading 1</th>
           <th align = "right">Heading 2</th>
        </tr>
        <tr bgcolor="white">
           <td>Set 1-A</td>
           <td align = "right">$65,000</td>
           <td align = "right">$65,000</td>
        </tr>
        <tr bgcolor="white">
           <td>Set 1-B</td>
           <td align = "right">10,000</td>
           <td align = "right">10,000</td>
        </tr>
        <tr bgcolor="white">
           <td class="summaryCell">Set 1-C</td>
           <td class="summaryCell" align = "right">5,000</td>
           <td class="summaryCell" align = "right">5,000</td>
        </tr>
        <tr class="summaryRow" bgcolor="white">
           <td class="summaryCell">Set 2-A</td>
           <td class="summaryCell" align = "right">80,000</td>
           <td class="summaryCell" align = "right">80,000</td>
        </tr>

        <tr bgcolor="white">
           <td>Set 3-A</td>
           <td align = "right">2,000</td>
           <td align = "right">2,000</td>
        </tr>
        <tr bgcolor="white">
           <td>Set 3-B</td>
           <td align = "right">78,000</td>
           <td align = "right">78,000</td>
        </tr>
        <tr bgcolor="white">
           <td>Set 3-C</td>
           <td align = "right">2,000</td>
           <td align = "right">2,000</td>
        </tr>
        <tr bgcolor="white">
           <td class="summaryCell">Set 3-D</td>
           <td class="summaryCell" align = "right">76,000</td>
           <td class="summaryCell" align = "right">76,000</td>
        </tr>

        </table>
        </body>
        </html>
        (Review ID: 117797)
        ======================================================================

              gsm Sergey Groznyh (Inactive)
              bonealsunw Bret O'neal (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: