RPG Dialogue Boxes

Hi friends,

I’ve been using the Slick2D engine to get into java game development, and I have been trying to develop an RPG. I’ve encountered an issue with trying to properly handle text/dialogue boxes. An example of what I’m essentially trying to do (click on the little application at the top of the article):

I’d follow this tutorial, but it’s in Flash and I’m not quite sure how to pull whatever algorithm that’s being used to my situation. So, any suggestions as to how I could approach this? Any help would be fantastic :slight_smile:

EDIT: I believe the term here I’m looking for is “text wrapping,” and essentially I just want to wrap the text to the text line when it no longer fits the box.