I have a JLabel which has a lot of text on it. Is there a way to make the JLabel have a max width so that it will wrap the text to make it not exceed this width?
Tha
You can use HTML without hard coding break tags if you use paragraph tags instead.
JLabel biglabel = new JLabel("A lot of text to be wrapped");
A lot of text to be wrapped