kosmokramer
Programmer
Hey. This is probably an easy question, but how do you find the length of text in terms of how many pixels it will take up on the applet? I am making a java slideshow, and I have the text description next to the image. The problem is that sometimes the text runs off the side of the applet. I tried reading the javadoc to find something and came up with LineBreakMeasurer, but the example they provide seems unnecessarily complicated (that, and I didn't really understand all the terminology used!). All I want to do is find the length of the string in pixels so that I can wrap to the next line!!
Thanks,
Paul
Thanks,
Paul