Wrap « JEditorPane « Java Swing Q&A





1. pre-wrap in a JEditorPane    stackoverflow.com

I am using a JEditorPane to show styled text and I am also using the <pre> tag to preserve all the whitespaces in the text. The problem is that I want ...

2. JEditorPane disabling Line Wrap    coderanch.com

If anyone is interested I found a fix for this problem in the book: Core Swing Advanced Programming by Kim Topley. It uses the same technique above for overriding the default getScrollableViewportsWidth, but actually fixes a major bug that was causing this to originally fail. I would post it, but I don't have the book handy right now.

3. wrapping with JEditorPane    forums.oracle.com