Hello Everyone, I am trying to display contents of word file into jTextPane same as its displayed in MS-Office. But jTextPane displays the contents in text format. What should I do? I am using POI library.
That's not something you can easily do. Microsoft Word is a big and complicated program, and formatting and displaying a Word document in exactly the same way as Word show it, is not simple - it's not a standard thing, only Microsoft knows exactly how Word displays a document.