If you want true formatting, you should create a Java applet that has a RichEdit box (I think that's what it's called, it's been a while since I used Swing). It basically has most of the formatting of a word processor: bold, italics, underline, link support, HTML support, etc.
Diego