HI ,
 I reallt don't get what u mean. I'm new to java, can u guide me please.
I have include partial of my source code here...pls let me know how to
integrate the iText with my word processor.
-----------------------------------------------------------
public class imageTest extends JFrame implements Printable
{

 ComponentOrientation BidiConvert;
 

 protected JTextPane m_monitor;
 protected StyleContext m_context;
 protected DefaultStyledDocument m_doc;
 protected RTFEditorKit m_kit;
 protected JFileChooser m_chooser;
 protected SimpleFilter m_rtfFilter;
 protected JToolBar m_toolBar;

public imageTest() {
   super("Testing Image insertation");
   setSize(600, 400);

   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);
   //testDialog=new TestDialog(this);
   JScrollPane ps = new JScrollPane(m_monitor);
   getContentPane().add(ps, BorderLayout.CENTER);


----------------------------------------------------


 BALA SINGAM
www.singam.net
On Monday 22 August 2005 06:35, BALA SINGAM wrote:
>   All i want is to enable my word processor to save images and tables.
> How to plug in this iText library class in my application..?
If all you want is to write rtf files then yes you could use iText. You would 
have to transform all the text objects in your editor into iText objects and 
then you could write those as rtf (or as pdf).

Greetings,
Mark
-- 
You have a reputation for being thoroughly reliable and trustworthy. 
A pity that it's totally undeserved.

My GPG public key is available at:
http://www.edu.uni-klu.ac.at/~mhall/data/security/MarkHall.asc

Reply via email to