Re: HTML table used in JTextPane not working with cellspacing="0" attribute
- From: btschumy@xxxxxxxxx
- Date: 21 Mar 2007 07:19:08 -0700
On Mar 20, 8:41 pm, "Andrew Thompson" <andrewtho...@xxxxxxxxx> wrote:
On Mar 21, 4:23 am, btsch...@xxxxxxxxx wrote:
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".
Interestingly,
1) cellspacing="20" makes a huge space, so it seems
to be honouring that attribute at some level, in some
form. I suspect that there is some other spacing in
there that the JEditorPane is (in its simplistic styling
of HTML) expecting to see for a true 'no pad' cell.
If I have any further insights into it, I
will pop back by.
Andrew T.
Andrew,
Yes, the cellspacing attribute is being handled, just not correctly.
I actually tried making it -1 and that does cause single pixel lines
to be drawn between cell, but the the border around all the cells is
still not drawn correctly. I wouldn't want to use this hack in
production code, but it is interesting.
.
- References:
- HTML table used in JTextPane not working with cellspacing="0" attribute
- From: btschumy
- Re: HTML table used in JTextPane not working with cellspacing="0" attribute
- From: Andrew Thompson
- HTML table used in JTextPane not working with cellspacing="0" attribute
- Prev by Date: Re: implementing paint
- Next by Date: Requesting tips, comments for an EDT thread-safe game architecture
- Previous by thread: Re: HTML table used in JTextPane not working with cellspacing="0" attribute
- Next by thread: implementing paint
- Index(es):
Relevant Pages
|
|