Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Problem with RTF Tables

843804Feb 13 2002 — edited Jun 18 2009
Problem Statement:
1) I am writting a RTF editor. I cant display tables properly in JTextPane. Does anyone have any idea??
2) Find and replace also dosnt work in these tables.
3) Once i save the document through my RTF editor, the tables information just goes away.
4) Word(XP-version) RTF files doesnt work with the RTFEditorKit. I saw a few posts from which I understand that RTF2002 has some elements which is not supported by RTFEditorKit. Is this true?

Given:
Lang: JDK1.3
OS: Win2k

Below is a piece of my code...

m_monitor = new JTextPane();
m_kit = new RTFEditorKit();
m_monitor.setEditorKit(m_kit);
m_context = new StyleContext();
m_doc = new DefaultStyledDocument(m_context);
m_monitor.setDocument(m_doc);


Thankx in advance
Please help
Subhro.

Comments

Processing
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Jul 16 2009
Added on Feb 13 2002
61 comments
755 views