Hello, I am developing one swing application in which I have used HTMLEditorKit to insert html text inside JTextPane. I am getting an encoded HTML message from another system like original message : hi\nhow are you? Encoded Message : hi new line encoded code how are you? Now when I insert this message in HTMLEditor in Jtext pane it never decode the new line code & displays the text in single line only. Please suggest me any work around or the exact solution.
Thanks in advance
posted 9 years ago
bound the message with <html> </html> and use it with java code