A rich text editor for Swing - uses structured XML as format.
JRichTextEditor is a stable rich text editor for the Java Swing widget set. It has a range of features, including clipboard integration, zooming, meta data, XML format, styles, etc. Used in a production environment it is released under LGPL.
There is a demo application that demonstrates the capabilities in
https://github.com/hoesterholt/JRichTextEditor/tree/master/src/net/oesterholt/demo/jxmlnote