Since JEditorPane can use multiple document types(i.e. HTML,
RTF, etc.) that can hold a variety of information( i.e. text, images, Components ), this would be hard to do... It may be possible to do this by extending the Document class to implement this behavior, but I would just suggest that if you need to control line-wrapping, stick with a JTextArea.
-Nate