A Java Swing WYSIWYG HTML component & framework

Navigation

SHEF is an HTML editing framework and component for the Java Swing GUI
library. It can be plugged into the javax.swing.JEditorPane text
component adding usable HTML WYSIWYG editing capabilities. In addition,
SHEF works around various JEditorPane quirks and adds functionality
currently missing from the standard Swing text implementation.

SHEF's current feature set includes (in no particular order):

HTML Source Editor with Syntax Highlighting

Context sensitive Swing Actions

Unlimited Undo/Redo

Table creation and editing

Click+Drag Resizable Tables

Click+Drag Resizable Images

Easily embeddable in Swing Applications or Applets

All the basic features you'd expect in an HTML Editing Component

Launch the demo

Using SHEF

Using SHEF in applications or applets is straightforward. Simply create
a new instance of HTMLEditorPane and use it as any other Swing
Component. For instance, adding the editor to a JFrame:

In addition to the component, SHEF includes a set of HTMLTextEdit Swing
Actions that allows more flexibility. These actions can be set up with
an editor manually to provide custom editing capabilities. Static
methods in the HTMLEditorActionFactor class can create lists of these
actions.