is it possible to do a linewrap in a textarea-component at a specific value?
In my case i have a textarea-component with width 100%.
And i would like to set dynamically if it should do a line wrap at for example 20 or 40 letters, so not only depending on the width of the textarea.
i don't know exactly what you wan't to do, but if i get you right and you just want a linebreak after every n-chars, then there is WordUtils from Apache-Commons the thing that you need.
theres a method called wrap(String str, int wrapLength, String newLineStr, boolean wrapLongWords) which places a char (in your case "\n") every n-Chars. And this string you can input into textpane.