HTML table used in JTextPane not working with cellspacing="0" attribute



In Java 1.6 on Windows, I'm trying to display an HTML table in a
JTextPane where cellspacing="0". It should display the cell borders
as a single line but it is instead displaying it as if cellspacing was
"1". Is this a known problem or am I possibly doing something wrong?
I'm tried many variations. The code below was generated using
Netscape Composer and displays correctly in other browsers.

The file I'm loading is (sorry if the formatting is messed up):

<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="content-type">
<title>Table</title>
</head>
<body>
<table style="text-align: left; width: 100%;" border="1"
cellpadding="2"
cellspacing="0">
<tbody>
<tr>
<td style="vertical-align: top;">Blah<br>
</td>
<td style="vertical-align: top;">val<br>
</td>
</tr>
<tr>
<td style="vertical-align: top;">Blah<br>
</td>
<td style="vertical-align: top;">val<br>
</td>
</tr>
</tbody>
</table>
<br>
</body>
</html>

.



Relevant Pages

  • Re: HTML table used in JTextPane not working with cellspacing="0" attribute
    ... It should display the cell borders ... That document is valid HTML 3.2 Transitional! ... accurate as a software validator.) ...
    (comp.lang.java.gui)
  • Ive become a hard-core userContent.CSS junkie !
    ... html, html * { ... display: inline!important;} ... Some of the schools have software developers... ... documenting the Source Code is different from documenting the app. ...
    (sci.physics)
  • Re: Redirecting between PHP Pages
    ... but at the very least in a php script. ... > on the outcome of the validation, you want to do one of two things: ... with the various bits of HTML being ... Display login form ...
    (comp.lang.php)
  • Re: formating text retrieved from a db
    ... You had to add HTML ... > If you were to display a phrase in your browser in simple HTML, ... They have a lofty name, ... has the formating with blank lines between the paragraphs etc. there is no ...
    (comp.lang.php)
  • Re: Am I on the right track here?
    ... that happens to be HTML ... | display rectangle for each video in that 4x2 layout, ... | display HTML relative to each rectangle. ... Once the server hands the page to the browser, the server, ...
    (comp.lang.php)