Hi there, I need to have an html embedded in a JTextArea. Could anybody direct me if this is achievable. I thought it was as simple as setting the JTextArea with an html string. Alas that does not work. Thnks Jack
No... JTextArea is for plain text display only... for HTML, you must use JEditorPane or one of its subclasses.
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
posted 14 years ago
Jack, I know this is going to be a stupid question, but when you say, "embedded in a JTextArea", do you mean rendered, like a page in a browser application, or rendered, like in a WYSIWYG HTML composer, or, are you simply talking about the code for an HTML page? Thanks JB