3 Replies Latest reply on May 27, 2008 3:15 PM by 807591

    Computing the bounding box of a string that will be drawn with Graphics

    807591
      Hello,

      is there a way to compute the width and height of a string that will be drawn with the Graphics class' drawString() method?
      I need to know the sizes my drawn string has, so that I can position the rest so that it won't overlap with the string.



      Greetings.