title: In Java How to make overflow-text go to next line
body: <p>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.</p>
  
  <p>Its kind of hard to explain. Please let me know if you need more details.</p>
  
  <p>Thank you</p>