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



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.

.



Relevant Pages

  • Re: help collecting data.
    ... Dim GetC As String ... the code in the cell that I want the order numbers(info from column C ... "Otto Moehrbach" wrote: ... display them both, seperated by a comma ...
    (microsoft.public.excel.misc)
  • RE: Create a "cell button" to hide selected cells.
    ... What I'd like to do, however, is to select a range of columns to display so I ... Dim intPickMonth As Integer ... Create a ComboBox on Cell A1 ...
    (microsoft.public.excel.worksheet.functions)
  • Re: Displaying formulae changes formatting
    ... "macropod" wrote: ... result for a given cell. ... With the macro I posted, you can display both the formula and it's result, ... Set CommentRange = Range ...
    (microsoft.public.excel.worksheet.functions)
  • Re: Email Booster from Excel
    ... You can use Display instead of Send and then attach the file you want. ... Dim cell As Range ... Set OutApp = CreateObject ... 1.Instead of yes/no in criteria I wanted have it compared with date if the date and time matches to todays date and time then "yes" else no. ...
    (microsoft.public.excel.programming)
  • Re: MS vs Mozilla, Netscape
    ... not to mention color display modes. ... only with the layout tables in FP2003. ... to go in and change the code to the size specified in the layout cell ... will be when rendered in the browser - that is WYSIWYG ...
    (microsoft.public.frontpage.client)