I have a String of text formatted with HTML tags. I am trying to display this text in my Java application the way it would look if displayed in the browser. That is I am looking for an HTML viewer/editor component.
Swing seems to have an HTML editor but I can't quite figure out how to use it. I would appreciate if someone could present a code which takes an html string and displays it with all the HTML formatting on the screen in some kind of text area using HTMLEditorKit from Swing or some other component.