Can anyone point out how to draw a really long string into a rectangle such that it auto breaks on words and wraps around? I have a rectangle I want to dump the text into, so I need something like:
public void DrawIntoRect(String str, Rectangle rc)
// Let the string wrap when necessary, breaking between words, using the current font.
// If there isn't enough space, finish off with a word ellipsis?
In win32 there are some flags you can use to do this, what is there that we can use in java?