I'd like to collect all WYSIWYG text editors for Java here.
Some rules for entries:
There must be a link to the project/product
You must state whether it's open source or commercial
Is it possible to extend the editor (add new features like a "violet centered sudoku")? Is that simple or complex?
Does it come with lots of features (fancy character and paragraph styles with online spell checking for several languages in the same document) or just the basics (bold, italics, no underline)?
List important dependencies (does it run on bare Java with Swing? SWT? MacOS?)
Your personal opinion
This list should help developers determine which editor to choose. I'm not looking for "the best" but more "what's there".
解决方案
JWebEngine
I recommend JWebEngine. It is the only one that I know that passes the ACID1 browser test and the mail-acid test. Most other Java HTML editors are based on the javax.swing.text.html.HTMLDocument and have all the same bugs. The support of CSS is very poor with HTMLDocument. JWebEngine has very good support for viewing HTML with CSS.
Link to the website. There are also online samples.
Commercial license
It is very simple to extend. The vendor is using it for many different things like editor, HTML printing engine, showing custom placeholders, etc. There is no problem with the visibility of classes like with the Sun HTMDocument.
It based on javax.swing.text.JEditorPane or javax.swing.text.JTextPane and you can use it together with third party tools like the spell checker JOrtho.
It is pure Java and runs on all platform with Java SE 5 or higher. It also run in non-signed applets.