Class WrappingEditorPane

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, Scrollable

public class WrappingEditorPane extends JEditorPane implements Scrollable
A JEditorPane subclass that implements the Scrollable interface to ensure correct line wrapping and horizontal scrolling behavior when placed inside a JScrollPane.

By default, it forces getScrollableTracksViewportWidth() to return true, which is the key to making HTML content wrap correctly.

Author:
anahata
See Also: