• Content1 • Content2 • Content3 This is for testing.
But I need to get the output as exact html formatted content for the input pasted in JEditorPane. When a text with different colors is pasted, it is not taking up the font format and it is showing in normal font color.
Is there any way available to get formatted content from jEditorPane or some other swing control as mentioned above?
My GUI consists of a jEditorPane in which the user will paste the formatted text from MS word or some other application (formatted text contains->un ordered list contents, bold text, italic texts, underlined text, etc). While user clicks the button, one auto mail is generated in which the formatted content is gathered from jEditorPane and the given user’s information is stored into string variable and it will be included into the mail.
When I fetch the contents from jEditorPane, it won’t retrieve full set of contents and also it won’t allow to paste the formatted text like bolded text, color changed texts, underlined text are not allowed.
I need to know which swing control I can use to meet my requirement as specified. Please educate me how to proceed in this case.