|
A couple things:
1) What version of the JVM are you using?
2) It is known that the HTML renderer included in the
JVM does have some bugs. It is possible that this is one of them. So, have you
checked Bug Parade?
Paul Franz
----- Original Message -----
Sent: Tuesday, June 17, 2003 5:39
PM
Subject: [jdjlist] JEditorPane, CSS, HTML
problem
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
---
You are currently subscribed to jdjlist as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
http://www.sys-con.com/fusetalk
|
- [jdjlist] Re: JEditorPane, CSS, HTML problem Paul Franz
- [jdjlist] Re: JEditorPane, CSS, HTML problem Roger Lacroix
- [jdjlist] Re: JEditorPane, CSS, HTML problem James Stauffer
- [jdjlist] Re: JEditorPane, CSS, HTML problem David Rosenstrauch
- [jdjlist] Re: JEditorPane, CSS, HTML problem Roger Lacroix
- [jdjlist] Re: JEditorPane, CSS, HTML problem Bill Squires
- [jdjlist] Re: JEditorPane, CSS, HTML problem Roger Lacroix