extrait de la doc, ca devrait résoudre ton probleme
setLineWrap
public void setLineWrap(boolean wrap)
Sets the line-wrapping policy of the text area. If set to true the lines will be wrapped if they are too long to fit within the allocated width. If set to false, the lines will always be unwrapped. A PropertyChange event ("lineWrap" ) is fired when the policy is changed. By default this property is false.
Parameters:
wrap - indicates if lines should be wrapped
See Also:
getLineWrap()