Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JEditorPane linewrap

tsjoepkeSep 3 2012 — edited Sep 3 2012
Hi,


I'm using a JEditorPane in a BorderLayout, the JEditorPane is in the center.
This way I don't need a preferred size for the JEditorPane.
But when I put in a lot of text, the JEditorPane doesn't wrap the text, only when I use a preferred size.
But with the preferred size the text is cut of at the bottom when it gets to long.

So my question: is there a way to activate line/ word wrap on an JEditorPane with no fixed size?
Some help please.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 1 2012
Added on Sep 3 2012
1 comment
699 views