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.