Is there a way in java swing to code:
"Constraint the width of JTextArea to W but allow JTextArea to expand vertically to contain all the linewrapped text'?
Alternately if the content does not need to be selectable or editable, use a label with HTML & CSS to constrain the width.