How to display html formatted text in text area of java application?
JEditorPane ep = new JEditorPane();
ep.setContentType("text/html");
ep.setText("html code");
You can use a JEditorPane to display HTML or a JTextPane, which allows you to set attributes for specific characters. Read the API and you will find a link to the Swing tutorial which provides examples.