Class ForcedWrappingEditorKit

All Implemented Interfaces:
Serializable, Cloneable

public class ForcedWrappingEditorKit extends StyledEditorKit
JTextPanes won't break words when wrapping, so very long words can result in horizontal scrolling. This EditorKit is a big, complicated way of overriding GlyphView.getMinimumSpan(int) to return 0 for the X-axis, allowing long words to be broken.
See Also:
  • Constructor Details

    • ForcedWrappingEditorKit

      public ForcedWrappingEditorKit()
  • Method Details