Hi everyone,

I have a JTextPane and i am trying to insert tables into the JTextPane. I am using the default rtf editor kit together with styled document.

I don't want to use the insert component to simply insert a JTable as if i do that then removing columns and rows becomes almost impossible

Basically i need a way to insert tables into the styled document of the JTextPane something like Microsoft word.

I hope someone can help me with this

Some example codes would be helpful

Thank You

Yours Sincerely

Richard West

I don't believe you can insert a JTable object into a textPane like that. I could be wrong, but I've never tried to use tables like that.