> I am currently trying to insert html tables into a Styled
> Document contained in a JTextPane but so far have been unsuccessful.
>
> Does anyone know how to do this.
> It would be great if someone could share this wisdom with me
Are you using an HTML EditorKit? If not, then you may be able to manage
some sort of tables, but they won't be HTML tables.
StyledDocument is a superclass that you typically don't use on your own.
Are you writing your own EditorKit? If so, that changes the question
considerably.

Signature
www.designacourse.com
The Easiest Way To Train Anyone... Anywhere.
Chris Smith - Lead Software Developer/Technical Trainer
MindIQ Corporation
freesoft_2000 - 12 Mar 2006 17:18 GMT
Hi everyone,
>>Are you using an HTML EditorKit? If not, then >>you may be able to
manage
>>some sort of tables, but they won't be HTML >>tables.
I am using the Styled Editor kit but what do you mean by some sort of
tables?? Could you explain a bit more in detail if its of no inconvinience
to you
>>StyledDocument is a superclass that you >>typically don't use on your
own.
>>Are you writing your own EditorKit? If so, >>that changes the question
considerably.
I really hope i don't have to write my own editor kit.
Richard West
the Sun - 14 Mar 2006 12:16 GMT
Hello,
Use JTextPane.setEditorKit(new HTMLEditorKit())
Set the text of JTextPane to the HTML code you want
-
Satish
freesoft_2000 - 15 Mar 2006 10:32 GMT
Hi everyone,
>>Use JTextPane.setEditorKit(new HTMLEditorKit())
>>Set the text of JTextPane to the HTML code you
>>want
satish, i am using the styled editorkit as mentioned in my first post, i
trying to insert html tables into a styled document and not html tables
into a html document.
Anyone has any ideas on this topic??
Richardv West