Use HTML pane for displaying the message.
Use a template engine to generate HTML test instead of stitching it together in java code.