Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / GUI / March 2006

Tip: Looking for answers? Try searching our database.

Tables

Thread view: 
freesoft_2000 - 12 Mar 2006 13:06 GMT
Hi everyone,

            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

Yours Sincerely

Richard West
Chris Smith - 12 Mar 2006 17:08 GMT
>              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


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.