05-28-2012 09:06 AM
Doesn't make any differenc does it? You still have to split the String and display on separate lines?
If you want to 'word wrap, search the forum there are a number of Threads that talk about doing this.
05-29-2012 10:38 AM
If you need to display a string you get from an external source and suspect that it might not fit on one line or if it contains newline characters you'd like to honor, you will have to split the string into multiple ones and use multiple drawText calls with varying y values.
Of course, creating your own word-wrapping mechanism is not the easiest thing in the world, but it can be done. Start by looking at Font.getAdvance methods.