Hi,

I am using setEditorKit(new HTMLEditorKit()) with a JEditorPane to render / display a HTML file.  The HTML has a stylesheet with it.

The HTML file has a table in it. When I try to use the CSS values of

TABLE.black-border { border-width:1px;
                     border-color:black;
                     border-collapse: collapse;
                   }

tr.bb-test { border-width:1px;
             border-color:black;
             border-style:solid;
             border-collapse: collapse;
           }

td.bb-medium { border-collapse: collapse;
               border-width:1px;
               border-color:black;
             }

<TABLE class=black-border WIDTH=100%>
<TR>
<TD class=bb-medium WIDTH=10%>TEST</TD>
<TD class=bb-medium WIDTH=25%>TEST Number</TD>
<TD class=bb-medium WIDTH=55%>POLICY Range</TD>
<TD class=bb-medium WIDTH=10%>DEST DATE</TD>
</TR>
<TR class=bb-test>
<TD class=bb-medium COLSPAN=4>item 1</TD>
</TR>
<TR class=bb-test>
<TD class=bb-medium COLSPAN=4>item 2</TD>
</TR>
</TABLE>

No matter what I set the border-width to (1, 10, 100), it always comes out as a thick border (same size) in the JEditorPane.   But in a web browser, 1, 10 or 100px border looks correct.

When I try to set the individual borders (i.e.  border-top-width ), the JEditorPane shows no border at all (as if it is invalid keyword).  

Does anybody know what the problem is?  Any help would be appreciated.

Thanks
Roger... ---
You are currently subscribed to jdjlist as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
http://www.sys-con.com/fusetalk

Reply via email to