Problem with RTF Tables
843804Feb 13 2002 — edited Jun 18 2009Problem 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.