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.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.