I want rich textbox control in java in nebeans, where i can able to paste content from documents. Here content means not only plain data but also tables from ms-word documents.

I tried above feature using "jeditorpane" but i am unable to retain table structure. please suggest me how to do it?


You'll need to use JEditorPane, that can support RTF formatting. But as far as I'm aware, it doesn't support tables. You'd have to write your own custom editor/renderer.

Or you can simply google for a solution:

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.