I have a long string which doesn't fit to the JPanel i am putting it. text is logger than the JPanel width. I can not put "\n" to the string to break the string, in fact i don't have the control over the length and content of the string. It user inputted string. What i want to do is when i am putting the text on JPanel i want any text that doesn't fit in to the JPanel to flow in to the next Line.
Its kind of hard to explain. Please let me know if you need more details.
Thank you