JLabel, multi line

sorry, i onyl have 30 points left. is this a way to make a JLabel auto wrap downward if all the text dosent fit on the first line? Right now I get something like "Blah Blah ..." There is no more room on the right and i want it to go down and make a new line. I keep chaning the text and dont know the length.

Who is Participating?
Sasha_MapaConnect With a Mentor Commented:
No, actually you can't. What you can do is for example extend JLabel and add that functionality which shouldn't be too hard. You can also get the same effect using a JTextArea and setting it to be disabled.
pipeAuthor Commented:
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.