make a JLabel wrap it’s text by setting a max width
No. You can use HTML in the label, but then you must hard code the break tag. A better approach is to use a JTextArea and turn wrapping on. You can change the background,foreground, font etc. of the text are to make it look like a label. Note, this answer is outdated as of at … Read more